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.
-
#reason_phrase ⇒ Object
Returns the HTTP status description.
Class Attribute Details
.code ⇒ Object (readonly)
:nodoc:
27 28 29 |
# File 'lib/webrick/httpstatus.rb', line 27 def code @code end |
.reason_phrase ⇒ Object (readonly)
:nodoc:
27 28 29 |
# File 'lib/webrick/httpstatus.rb', line 27 def reason_phrase @reason_phrase end |
Instance Method Details
#code ⇒ Object Also known as: to_i
Returns the HTTP status code
31 |
# File 'lib/webrick/httpstatus.rb', line 31 def code() self::class::code end |
#reason_phrase ⇒ Object
Returns the HTTP status description
34 |
# File 'lib/webrick/httpstatus.rb', line 34 def reason_phrase() self::class::reason_phrase end |