This module is used to manager HTTP status codes.

See www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more information.

Constants

HTTP status codes and descriptions

Maps a status code to the corresponding Status class

Class Methods

Returns the status class corresponding to code

WEBrick::HTTPStatus[302]
=> WEBrick::HTTPStatus::NotFound

Is code a client error status?

Is code an error status?

Is code an informational status?

Returns the description corresponding to the HTTP status code

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

Is code a redirection status?

Is code a server error status?

Is code a successful status?

Instance Methods

Is code a client error status?

Is code an error status?

Is code an informational status?

Returns the description corresponding to the HTTP status code

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

Is code a redirection status?

Is code a server error status?

Is code a successful status?