How old/big is the snake? Two weeks is plenty of time to wait between feedings. Most people feed hatchlings every 5 to 7 days. There are many factors that could contribute to your BP refusing food. Stress is the most common issue, but we will need some more info to figure out exactly what is going on. What are your temps (both hot and cold side)? How do you measure temps, and what is your heat source? How big is the enclosure, and how is it set up (hides, etc)? How often are you handling the snake?
From your post, I'm assuming you are using an aquarium. For a lot of ball pythons, being kept in an aquarium can be stressful, especially if you don't have lots of hiding places. They live underground in the wild, and don't spend much time out and about, so all that glass can make them feel pretty vulnerable. You can try covering the enclosure with a towel or blanket to make it feel safer. Also, offer food at night, in the dark, in the snake's enclosure (KMG is right on about that). They are nocturnal, after all.