Make httpretty return the proper response type