Attach response object to accounts generated errors resulting from HTTP failures

@n1mmy @avital As discussed.  

This allows callers that receive the error to access properties in the response object, such as the statusCode.