add httpStatusCode to errors throw from request()