class CybridApiId::ApiError

def message

def message
  if @message.nil?
    msg = "Error message: the server returns an error"
  else
    msg = @message
  end
  msg += "\nHTTP status code: #{code}" if code
  msg += "\nResponse headers: #{response_headers}" if response_headers
  msg += "\nResponse body: #{response_body}" if response_body
  msg
end