There needs to be alot more information provided for anyone to make a determination.
How old is the snake? Was it eating before you got it? Is it healthy? How long have you had it? What are the viv conditions (heat, hides, humidity, etc.)? What did you try to feed it; f/t, live or something too large maybe?
There are plenty of things that could have an impact on why it didn't eat. If it's healthy, it can probably go a few weeks without much problem. There are many ways to convince a baby snake to eat. We just need to know what the conditions are that you're working with so we can help you.