Class: Lotus::Http::Status Private
- Inherits:
-
Object
- Object
- Lotus::Http::Status
- Defined in:
- lib/lotus/http/status.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
An HTTP status
Constant Summary collapse
- ALL =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
A set of standard codes and messages for HTTP statuses
::Rack::Utils::HTTP_STATUS_CODES.dup.merge({ 103 => 'Checkpoint', 122 => 'Request-URI too long', 418 => 'I\'m a teapot', 420 => 'Enhance Your Calm', 444 => 'No Response', 449 => 'Retry With', 450 => 'Blocked by Windows Parental Controls', 451 => 'Wrong Exchange server', 499 => 'Client Closed Request', 598 => 'Network read timeout error', 599 => 'Network connect timeout error' }).freeze
Class Method Summary collapse
-
.for_code(code) ⇒ Array
private
Return a status for the given code.
Class Method Details
.for_code(code) ⇒ Array
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return a status for the given code
41 42 43 |
# File 'lib/lotus/http/status.rb', line 41 def self.for_code(code) ALL.assoc(code) end |