Called when the HTTP request fails.
the response returned from the server
the response body string returned from the server