Exception: WEBrick::HTTPStatus::Status
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/webrick-1.7.0/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/webrick-1.7.0/lib/webrick/httpstatus.rb', line 27 def code @code end |
.reason_phrase ⇒ Object (readonly)
:nodoc:
27 28 29 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/webrick-1.7.0/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/webrick-1.7.0/lib/webrick/httpstatus.rb', line 31 def code() self::class::code end |
#reason_phrase ⇒ Object
Returns the HTTP status description
34 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/webrick-1.7.0/lib/webrick/httpstatus.rb', line 34 def reason_phrase() self::class::reason_phrase end |