Package wtf :: Package app :: Module http_response
[hide private]
[frames] | no frames]

Module http_response

source code

This module stores HTTP response codes.


Author: André Malo

Classes [hide private]
  HTTPResponse
Base HTTP error response exception class
  Continue
100 Continue (RFC 2616)
  SwitchingProtocols
101 Switching Protocols (RFC 2616)
  Processing
102 Processing (RFC 2518)
  OK
200 OK (RFC 2616)
  Created
201 Created (RFC 2616)
  Accepted
202 Accepted (RFC 2616)
  NonAuthoritativeInformation
203 Non-Authoritative Information (RFC 2616)
  NoContent
204 No Content (RFC 2616)
  ResetContent
205 Reset Content (RFC 2616)
  PartialContent
206 Partial Content (RFC 2616)
  MultiStatus
207 Multi-Status (RFC 2518)
  MultipleChoices
300 Multiple Choices (RFC 2616)
  _BaseRedirect
Base redirect class
  HTTPRedirectResponse
Subclass for type identification of automatic redirects
  MovedPermanently
301 Moved Permanently (RFC 2616)
  Found
302 Found (RFC 2616)
  SeeOther
303 See Other (RFC 2616)
  NotModified
304 Not Modified (RFC 2616)
  UseProxy
305 Use Proxy (RFC 2616)
  Unused306
306 (Unused) (RFC 2616)
  TemporaryRedirect
307 Temporary Redirect (RFC 2616)
  BadRequest
400 Bad Request (RFC 2616)
  AuthorizationRequired
401 Authorization Required (RFC 2616)
  PaymentRequired
402 Payment Required (RFC 2616)
  Forbidden
403 Forbidden (RFC 2616)
  NotFound
404 Not Found (RFC 2616)
  MethodNotAllowed
405 Method Not Allowed
  NotAcceptable
406 Not Acceptable (RFC 2616)
  ProxyAuthenticationRequired
407 Proxy Authentication Required (RFC 2616)
  RequestTimeout
408 Request Timeout (RFC 2616)
  Conflict
409 Conflict (RFC 2616)
  Gone
410 Gone (RFC 2616)
  LengthRequired
411 Length Required (RFC 2616)
  PreconditionFailed
412 Precondition Failed (RFC 2616)
  RequestEntityTooLarge
413 Request Entity Too Large (RFC 2616)
  RequestURITooLong
414 Request-URI Too Long (RFC 2616)
  UnsupportedMediaType
415 Unsupported Media Type (RFC 2616)
  RequestRangeNotSatisfiable
416 Request Range Not Satisfiable (RFC 2616)
  ExpectationFailed
417 Expectation Failed (RFC 2616)
  UnprocessableEntity
422 Unprocessable Entity (RFC 2518)
  Locked
423 Locked (RFC 2518)
  FailedDependency
424 Failed Dependency (RFC 2518)
  UpgradeRequired
426 Upgrade Required (RFC 2817)
  InternalServerError
500 Internal Server Error (RFC 2616)
  NotImplemented
501 Not Implemented (RFC 2616)
  BadGateway
502 Bad Gateway (RFC 2616)
  ServiceUnavailable
503 Service Unavailable (RFC 2616)
  GatewayTimeout
504 Gateway Timeout (RFC 2616)
  HTTPVersionNotSupported
505 HTTP Version Not Supported (RFC 2616)
  VariantAlsoNegotiates
506 Variant Also Negotiates (RFC 2295)
  InsufficientStorage
507 Insufficient Storage (RFC 2518)
  NotExtended
510 Not Extended (RFC 2774)
Variables [hide private]
dict classes = {100: <class 'wtf.app.http_response.Continue'>, 101:...
Mapping status code -> HTTPResponse ({status: HTTPResponse, ...})
dict reasons = {100: 'Continue', 101: 'Switching Protocols', 102: '...
Mapping status code -> reason phrase ({status: 'reason', ...})
  __package__ = 'wtf.app'
Variables Details [hide private]

classes

Mapping status code -> HTTPResponse ({status: HTTPResponse, ...})
Type:
dict
Value:
{100: <class 'wtf.app.http_response.Continue'>,
 101: <class 'wtf.app.http_response.SwitchingProtocols'>,
 102: <class 'wtf.app.http_response.Processing'>,
 200: <class 'wtf.app.http_response.OK'>,
 201: <class 'wtf.app.http_response.Created'>,
 202: <class 'wtf.app.http_response.Accepted'>,
 203: <class 'wtf.app.http_response.NonAuthoritativeInformation'>,
 204: <class 'wtf.app.http_response.NoContent'>,
...

reasons

Mapping status code -> reason phrase ({status: 'reason', ...})
Type:
dict
Value:
{100: 'Continue',
 101: 'Switching Protocols',
 102: 'Processing',
 200: 'OK',
 201: 'Created',
 202: 'Accepted',
 203: 'Non-Authoritative Information',
 204: 'No Content',
...