Exception: WEBrick::HTTPStatus::Status
- Inherits:
-
StandardError
- Object
- StandardError
- WEBrick::HTTPStatus::Status
- Defined in:
- lib/webrick/httpstatus.rb
Overview
Root of the HTTP status class hierarchy
Class Attribute Summary collapse
-
.code ⇒ Object
readonly
:nodoc:.
-
.reason_phrase ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#code ⇒ Object
(also: #to_i)
Returns the HTTP status code.
-
#initialize(*args) ⇒ Status
constructor
:nodoc:.
-
#reason_phrase ⇒ Object
Returns the HTTP status description.
Constructor Details
Class Attribute Details
.code ⇒ Object (readonly)
:nodoc:
30 31 32 |
# File 'lib/webrick/httpstatus.rb', line 30 def code @code end |
.reason_phrase ⇒ Object (readonly)
:nodoc:
30 31 32 |
# File 'lib/webrick/httpstatus.rb', line 30 def reason_phrase @reason_phrase end |
Instance Method Details
#code ⇒ Object Also known as: to_i
Returns the HTTP status code
34 |
# File 'lib/webrick/httpstatus.rb', line 34 def code() self::class::code end |
#reason_phrase ⇒ Object
Returns the HTTP status description
37 |
# File 'lib/webrick/httpstatus.rb', line 37 def reason_phrase() self::class::reason_phrase end |