Module: Wsv::Status
- Defined in:
- lib/wsv/status.rb
Constant Summary collapse
- REASONS =
{ 200 => "OK", 204 => "No Content", 206 => "Partial Content", 301 => "Moved Permanently", 304 => "Not Modified", 400 => "Bad Request", 403 => "Forbidden", 404 => "Not Found", 405 => "Method Not Allowed", 408 => "Request Timeout", 414 => "URI Too Long", 416 => "Range Not Satisfiable", 431 => "Request Header Fields Too Large", 503 => "Service Unavailable" }.freeze
Class Method Summary collapse
Class Method Details
.reason(code) ⇒ Object
22 23 24 |
# File 'lib/wsv/status.rb', line 22 def self.reason(code) REASONS.fetch(code) end |