Exception: WEBrick::HTTPStatus::Status

Inherits:
StandardError
  • Object
show all
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

Direct Known Subclasses

Error, Info, Redirect, Success

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.codeObject (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_phraseObject (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

#codeObject 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_phraseObject

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