module

WEBrick::HTTPStatus

This module is used to manager HTTP status codes.

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

Constants

CodeToError = {}

StatusMessage = { # :nodoc:\n100 => 'Continue',\n101 => 'Switching Protocols',\n200 => 'OK',\n201 => 'Created',\n202 => 'Accepted',\n203 => 'Non-Authoritative Information',\n204 => 'No Content',\n205 => 'Reset Content',\n206 => 'Partial Content',\n207 => 'Multi-Status',\n300 => 'Multiple Choices',\n301 => 'Moved Permanently',\n302 => 'Found',\n303 => 'See Other',\n304 => 'Not Modified',\n305 => 'Use Proxy',\n307 => 'Temporary Redirect',\n400 => 'Bad Request',\n401 => 'Unauthorized',\n402 => 'Payment Required',\n403 => 'Forbidden',\n404 => 'Not Found',\n405 => 'Method Not Allowed',\n406 => 'Not Acceptable',\n407 => 'Proxy Authentication Required',\n408 => 'Request Timeout',\n409 => 'Conflict',\n410 => 'Gone',\n411 => 'Length Required',\n412 => 'Precondition Failed',\n413 => 'Request Entity Too Large',\n414 => 'Request-URI Too Large',\n415 => 'Unsupported Media Type',\n416 => 'Request Range Not Satisfiable',\n417 => 'Expectation Failed',\n422 => 'Unprocessable Entity',\n423 => 'Locked',\n424 => 'Failed Dependency',\n426 => 'Upgrade Required',\n428 => 'Precondition Required',\n429 => 'Too Many Requests',\n431 => 'Request Header Fields Too Large',\n451 => 'Unavailable For Legal Reasons',\n500 => 'Internal Server Error',\n501 => 'Not Implemented',\n502 => 'Bad Gateway',\n503 => 'Service Unavailable',\n504 => 'Gateway Timeout',\n505 => 'HTTP Version Not Supported',\n507 => 'Insufficient Storage',\n511 => 'Network Authentication Required',\n}

Files

  • lib/webrick/httpstatus.rb

Nested classes and modules