class Faraday::Response::RaiseError

def response_values(env)

configured with the option `include_request: false`.
The `request` key is omitted when the middleware is explicitly

- request
- body
- headers
- status
Returns a hash of response data with the following keys:
def response_values(env)
  response = {
    status: env.status,
    headers: env.response_headers,
    body: env.body
  }
  # Include the request data by default. If the middleware was explicitly
  # configured to _not_ include request data, then omit it.
  return response unless options[:include_request]
  response.merge(
    request: {
      method: env.method,
      url: env.url,
      url_path: env.url.path,
      params: query_params(env),
      headers: env.request_headers,
      body: env.request_body
    }
  )
end