Method: WEBrick::HTTPStatus.reason_phrase

Defined in:
lib/webrick/httpstatus.rb

.reason_phrase(code) ⇒ Object

Returns the description corresponding to the HTTP status code

WEBrick::HTTPStatus.reason_phrase 404
=> "Not Found"


140
141
142
# File 'lib/webrick/httpstatus.rb', line 140

def reason_phrase(code)
  StatusMessage[code.to_i]
end