How long did you give him after putting him in his new environment before trying to feed? He has been through some stress and needs time to adjust. Give him a week and completely leave him alone except for routine maintenance of his enclosure. He will relax and will eat for you. 2 weeks off feed is not a big deal. Additionally, some snakes will eat during shed and some won't. Shedding is not the most comfortable time for them.