123456789_123456789_123456789_123456789_123456789_

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
  • Object
Defined in: lib/webrick/httpstatus.rb

Overview

Root of the HTTP status class hierarchy

Class Attribute Summary

Instance Method Summary

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

[ GitHub ]

  
# File 'lib/webrick/httpstatus.rb', line 31

def code() self::class::code end

#reason_phrase

Returns the HTTP status description

[ GitHub ]

  
# 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.

[ GitHub ]

  
# File 'lib/webrick/httpstatus.rb', line 36

alias to_i code # :nodoc: