Module: Utopia::HTTP
- Defined in:
- lib/utopia/http.rb
Overview
HTTP protocol implementation.
Defined Under Namespace
Classes: Status
Constant Summary collapse
- STATUS_CODES =
A list of commonly used HTTP status codes. For help choosing the right status code, see http://racksburg.com/choosing-an-http-status-code/
{ :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, :not_allowed => 405, :unsupported_method => 405, :gone => 410, :teapot => 418, :unprocessible => 422, # The best status code for a client-side ArgumentError. :error => 500, :unimplemented => 501, :unavailable => 503 }
- CONTENT_TYPE =
"content-type".freeze
- LOCATION =
"location".freeze
- CACHE_CONTROL =
"cache-control".freeze