I know that most people will recommend only feeding mice or rats. I don't know if it's harmful or if your snake will imprint fish as its only food source, but it will cause soft and smelly poop. If it does imprint you might be stuck feeding it pond koi, so I would stick to rodents. I'm surprised it ate it, and if you want a snake that you can feed goldfish I'd suggest a garter snake.