Sha256: 8f916cfe56235a4d4dde0c6280698240fdb1f9f46e5fc44a8c42876af7a5609a
Contents?: true
Size: 921 Bytes
Versions: 4
Compression:
Stored size: 921 Bytes
Contents
# This file is part of the "Utopia Framework" project, and is released under the MIT license. # Copyright 2010 Samuel Williams. All rights reserved. # See <utopia.rb> for licensing details. module Utopia HTTP_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 } HTTP_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" } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
utopia-0.10.0 | lib/utopia/http_status_codes.rb |
utopia-0.9.61 | lib/utopia/http_status_codes.rb |
utopia-0.9.60 | lib/utopia/http_status_codes.rb |
utopia-0.9.59 | lib/utopia/http_status_codes.rb |