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.



69
70
71
72
# File 'lib/ridley/errors.rb', line 69

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