Many hatchlings are too timid to leave the hiding box to find the water bowl, and dehydration can make them refuse food. Putting one in a small box with a quarter inch of water in the bottom every few days and leaving it alone for half an hour or so can prevent dehydration.
Temperatures either too high or too low will put any snake off food.
Good luck.