Add HTTP properties to generic error

Allows generic HTTP error to accept more detailed information about the response from the server.