Exception: WEBrick::HTTPStatus::Status
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
StandardError
|
|
Instance Chain:
self,
StandardError
|
|
Inherits: |
StandardError
|
Defined in: | lib/webrick/httpstatus.rb |
Overview
Root of the HTTP status class hierarchy
Class Attribute Summary
- .code readonly Internal use only
- .reason_phrase readonly Internal use only
Instance Method Summary
-
#code
(also: #to_i)
Returns the HTTP status code.
-
#reason_phrase
Returns the HTTP status description.
-
#to_i
Internal use only
Alias for #code.
Class Attribute Details
.code (readonly)
This method is for internal use only.
[ GitHub ]
# File 'lib/webrick/httpstatus.rb', line 27
attr_reader :code, :reason_phrase # :nodoc:
.reason_phrase (readonly)
This method is for internal use only.
[ GitHub ]
# File 'lib/webrick/httpstatus.rb', line 27
attr_reader :code, :reason_phrase # :nodoc:
Instance Method Details
#code Also known as: #to_i
Returns the HTTP status code
# File 'lib/webrick/httpstatus.rb', line 31
def code() self::class::code end
#reason_phrase
Returns the HTTP status description
# File 'lib/webrick/httpstatus.rb', line 34
def reason_phrase() self::class::reason_phrase end
#to_i
This method is for internal use only.
Alias for #code.
# File 'lib/webrick/httpstatus.rb', line 36
alias to_i code # :nodoc: