Exception: Ridley::Errors::HTTPUnknownStatus

Inherits:
HTTPError show all
Defined in:
lib/ridley/errors.rb

Instance Attribute Summary

Attributes inherited from HTTPError

#env, #errors, #message

Instance Method Summary collapse

Methods inherited from HTTPError

error_map, fabricate, lookup_error, register_error

Constructor Details

#initialize(env) ⇒ HTTPUnknownStatus

Returns a new instance of HTTPUnknownStatus


94
95
96
97
# File 'lib/ridley/errors.rb', line 94

def initialize(env)
  super(env)
  @message = "status: #{env[:status]} is an unknown HTTP status code or not an error."
end