Method: Ridley::Errors::HTTPError.lookup_error
- Defined in:
- lib/ridley/errors.rb
.lookup_error(status) ⇒ Object
101 102 103 104 105 |
# File 'lib/ridley/errors.rb', line 101 def lookup_error(status) error_map.fetch(status.to_i) rescue KeyError HTTPUnknownStatus end |