Throw more detailed generic HTTP error

Take advantage of new response code and body properties to allow better logging.