Module: Utopia::HTTP

Defined in:
lib/utopia/http.rb

Constant Summary collapse

STATUS_CODES =
{
	:success => 200,
	:created => 201,
	:accepted => 202,
	:moved => 301,
	:found => 302,
	:see_other => 303,
	:not_modified => 304,
	:redirect => 307,
	:bad_request => 400,
	:unauthorized => 401,
	:forbidden => 403,
	:not_found => 404,
	:unsupported_method => 405,
	:gone => 410,
	:teapot => 418,
	:error => 500,
	:unimplemented => 501,
	:unavailable => 503
}
STATUS_DESCRIPTIONS =
{
	400 => "Bad Request",
	401 => "Permission Denied",
	403 => "Access Forbidden",
	404 => "Resource Not Found",
	405 => "Unsupported Method",
	416 => "Byte range unsatisfiable",
	500 => "Internal Server Error",
	501 => "Not Implemented",
	503 => "Service Unavailable"
}