let method getFavorite() return a favorite object in the response body
fixed status codes