Also attach statusCode and response on error responses with a body.