Add body of HTTP response to error callback