class Faraday::Error

def exc_msg_and_response!(exc, response = nil)

to `super`. See NilStatusError.
If a subclass has to call this, then it should pass a string message

:body - String HTTP request body.
header values.
:headers - String key/value hash of HTTP request
present in the request.
:params - String key/value hash of query params
:url_path - String with the url path requested.
:url - URI object with the url requested.
:method - Symbol with the request HTTP method.
:request - Hash
:body - Optional string HTTP response body.
values.
:headers - String key/value hash of HTTP response header
:status - Optional integer HTTP response status
response - Hash
exc - Either an Exception, a string message, or a response hash.
instance variables.
Pulls out potential parent exception and response hash, storing them in
def exc_msg_and_response!(exc, response = nil)
  if @response.nil? && @wrapped_exception.nil?
    @wrapped_exception, msg, @response = exc_msg_and_response(exc, response)
    return msg
  end
  exc.to_s
end