class JsonApiClient::Errors::ServerError

Public Class Methods

new(env, msg = nil) click to toggle source
Calls superclass method JsonApiClient::Errors::ApiError::new
# File lib/json_api_client/errors.rb, line 80
def initialize(env, msg = nil)
  msg ||= begin
    status = env.status
    message = ::Rack::Utils::HTTP_STATUS_CODES[status]
    "#{status} #{message}"
  end

  super env, msg
end