Switch HttpService from Funciton1 to PartialFunction