Implemented more functions in the HTTP response factory