OpenQuizz
Une application de gestion des contenus pédagogiques
HTTPStatus Class Reference
Inheritance diagram for HTTPStatus:
Collaboration diagram for HTTPStatus:

Public Member Functions

def __new__ (cls, value, phrase, description='')
 
def __str__ (self)
 

Static Public Attributes

int CONTINUE = 100, 'Continue', 'Request received, please continue'
 
tuple SWITCHING_PROTOCOLS
 
int PROCESSING = 102, 'Processing'
 
int OK = 200, 'OK', 'Request fulfilled, document follows'
 
int CREATED = 201, 'Created', 'Document created, URL follows'
 
tuple ACCEPTED
 
tuple NON_AUTHORITATIVE_INFORMATION
 
int NO_CONTENT = 204, 'No Content', 'Request fulfilled, nothing follows'
 
int RESET_CONTENT = 205, 'Reset Content', 'Clear input form for further input'
 
int PARTIAL_CONTENT = 206, 'Partial Content', 'Partial content follows'
 
int MULTI_STATUS = 207, 'Multi-Status'
 
int ALREADY_REPORTED = 208, 'Already Reported'
 
int IM_USED = 226, 'IM Used'
 
tuple MULTIPLE_CHOICES
 
tuple MOVED_PERMANENTLY
 
int FOUND = 302, 'Found', 'Object moved temporarily -- see URI list'
 
int SEE_OTHER = 303, 'See Other', 'Object moved -- see Method and URL list'
 
tuple NOT_MODIFIED
 
tuple USE_PROXY
 
tuple TEMPORARY_REDIRECT
 
tuple PERMANENT_REDIRECT
 
tuple BAD_REQUEST
 
tuple UNAUTHORIZED
 
tuple PAYMENT_REQUIRED
 
tuple FORBIDDEN
 
tuple NOT_FOUND
 
tuple METHOD_NOT_ALLOWED
 
tuple NOT_ACCEPTABLE
 
tuple PROXY_AUTHENTICATION_REQUIRED
 
tuple REQUEST_TIMEOUT
 
int CONFLICT = 409, 'Conflict', 'Request conflict'
 
tuple GONE
 
tuple LENGTH_REQUIRED
 
tuple PRECONDITION_FAILED
 
tuple REQUEST_ENTITY_TOO_LARGE
 
tuple REQUEST_URI_TOO_LONG
 
tuple UNSUPPORTED_MEDIA_TYPE
 
tuple REQUESTED_RANGE_NOT_SATISFIABLE
 
tuple EXPECTATION_FAILED
 
int UNPROCESSABLE_ENTITY = 422, 'Unprocessable Entity'
 
int LOCKED = 423, 'Locked'
 
int FAILED_DEPENDENCY = 424, 'Failed Dependency'
 
int UPGRADE_REQUIRED = 426, 'Upgrade Required'
 
tuple PRECONDITION_REQUIRED
 
tuple TOO_MANY_REQUESTS
 
tuple REQUEST_HEADER_FIELDS_TOO_LARGE
 
tuple INTERNAL_SERVER_ERROR
 
tuple NOT_IMPLEMENTED
 
tuple BAD_GATEWAY
 
tuple SERVICE_UNAVAILABLE
 
tuple GATEWAY_TIMEOUT
 
tuple HTTP_VERSION_NOT_SUPPORTED
 
int VARIANT_ALSO_NEGOTIATES = 506, 'Variant Also Negotiates'
 
int INSUFFICIENT_STORAGE = 507, 'Insufficient Storage'
 
int LOOP_DETECTED = 508, 'Loop Detected'
 
int NOT_EXTENDED = 510, 'Not Extended'
 
tuple NETWORK_AUTHENTICATION_REQUIRED
 

Detailed Description

HTTP status codes and reason phrases

Status codes from the following RFCs are all observed:

    * RFC 7231: Hypertext Transfer Protocol (HTTP/1.1), obsoletes 2616
    * RFC 6585: Additional HTTP Status Codes
    * RFC 3229: Delta encoding in HTTP
    * RFC 4918: HTTP Extensions for WebDAV, obsoletes 2518
    * RFC 5842: Binding Extensions to WebDAV
    * RFC 7238: Permanent Redirect
    * RFC 2295: Transparent Content Negotiation in HTTP
    * RFC 2774: An HTTP Extension Framework

Member Function Documentation

◆ __new__()

def __new__ (   cls,
  value,
  phrase,
  description = '' 
)

◆ __str__()

def __str__ (   self)

Field Documentation

◆ ACCEPTED

tuple ACCEPTED
static
Initial value:
= (202, 'Accepted',
'Request accepted, processing continues off-line')

◆ ALREADY_REPORTED

int ALREADY_REPORTED = 208, 'Already Reported'
static

◆ BAD_GATEWAY

tuple BAD_GATEWAY
static
Initial value:
= (502, 'Bad Gateway',
'Invalid responses from another server/proxy')

◆ BAD_REQUEST

tuple BAD_REQUEST
static
Initial value:
= (400, 'Bad Request',
'Bad request syntax or unsupported method')

◆ CONFLICT

int CONFLICT = 409, 'Conflict', 'Request conflict'
static

◆ CONTINUE

int CONTINUE = 100, 'Continue', 'Request received, please continue'
static

◆ CREATED

int CREATED = 201, 'Created', 'Document created, URL follows'
static

◆ EXPECTATION_FAILED

tuple EXPECTATION_FAILED
static
Initial value:
= (417, 'Expectation Failed',
'Expect condition could not be satisfied')

◆ FAILED_DEPENDENCY

int FAILED_DEPENDENCY = 424, 'Failed Dependency'
static

◆ FORBIDDEN

tuple FORBIDDEN
static
Initial value:
= (403, 'Forbidden',
'Request forbidden -- authorization will not help')

◆ FOUND

int FOUND = 302, 'Found', 'Object moved temporarily -- see URI list'
static

◆ GATEWAY_TIMEOUT

tuple GATEWAY_TIMEOUT
static
Initial value:
= (504, 'Gateway Timeout',
'The gateway server did not receive a timely response')

◆ GONE

tuple GONE
static
Initial value:
= (410, 'Gone',
'URI no longer exists and has been permanently removed')

◆ HTTP_VERSION_NOT_SUPPORTED

tuple HTTP_VERSION_NOT_SUPPORTED
static
Initial value:
= (505, 'HTTP Version Not Supported',
'Cannot fulfill request')

◆ IM_USED

int IM_USED = 226, 'IM Used'
static

◆ INSUFFICIENT_STORAGE

int INSUFFICIENT_STORAGE = 507, 'Insufficient Storage'
static

◆ INTERNAL_SERVER_ERROR

tuple INTERNAL_SERVER_ERROR
static
Initial value:
= (500, 'Internal Server Error',
'Server got itself in trouble')

◆ LENGTH_REQUIRED

tuple LENGTH_REQUIRED
static
Initial value:
= (411, 'Length Required',
'Client must specify Content-Length')

◆ LOCKED

int LOCKED = 423, 'Locked'
static

◆ LOOP_DETECTED

int LOOP_DETECTED = 508, 'Loop Detected'
static

◆ METHOD_NOT_ALLOWED

tuple METHOD_NOT_ALLOWED
static
Initial value:
= (405, 'Method Not Allowed',
'Specified method is invalid for this resource')

◆ MOVED_PERMANENTLY

tuple MOVED_PERMANENTLY
static
Initial value:
= (301, 'Moved Permanently',
'Object moved permanently -- see URI list')

◆ MULTI_STATUS

int MULTI_STATUS = 207, 'Multi-Status'
static

◆ MULTIPLE_CHOICES

tuple MULTIPLE_CHOICES
static
Initial value:
= (300, 'Multiple Choices',
'Object has several resources -- see URI list')

◆ NETWORK_AUTHENTICATION_REQUIRED

tuple NETWORK_AUTHENTICATION_REQUIRED
static
Initial value:
= (511,
'Network Authentication Required',
'The client needs to authenticate to gain network access')

◆ NO_CONTENT

int NO_CONTENT = 204, 'No Content', 'Request fulfilled, nothing follows'
static

◆ NON_AUTHORITATIVE_INFORMATION

tuple NON_AUTHORITATIVE_INFORMATION
static
Initial value:
= (203,
'Non-Authoritative Information', 'Request fulfilled from cache')

◆ NOT_ACCEPTABLE

tuple NOT_ACCEPTABLE
static
Initial value:
= (406, 'Not Acceptable',
'URI not available in preferred format')

◆ NOT_EXTENDED

int NOT_EXTENDED = 510, 'Not Extended'
static

◆ NOT_FOUND

tuple NOT_FOUND
static
Initial value:
= (404, 'Not Found',
'Nothing matches the given URI')

◆ NOT_IMPLEMENTED

tuple NOT_IMPLEMENTED
static
Initial value:
= (501, 'Not Implemented',
'Server does not support this operation')

◆ NOT_MODIFIED

tuple NOT_MODIFIED
static
Initial value:
= (304, 'Not Modified',
'Document has not changed since given time')

◆ OK

int OK = 200, 'OK', 'Request fulfilled, document follows'
static

◆ PARTIAL_CONTENT

int PARTIAL_CONTENT = 206, 'Partial Content', 'Partial content follows'
static

◆ PAYMENT_REQUIRED

tuple PAYMENT_REQUIRED
static
Initial value:
= (402, 'Payment Required',
'No payment -- see charging schemes')

◆ PERMANENT_REDIRECT

tuple PERMANENT_REDIRECT
static
Initial value:
= (308, 'Permanent Redirect',
'Object moved temporarily -- see URI list')

◆ PRECONDITION_FAILED

tuple PRECONDITION_FAILED
static
Initial value:
= (412, 'Precondition Failed',
'Precondition in headers is false')

◆ PRECONDITION_REQUIRED

tuple PRECONDITION_REQUIRED
static
Initial value:
= (428, 'Precondition Required',
'The origin server requires the request to be conditional')

◆ PROCESSING

int PROCESSING = 102, 'Processing'
static

◆ PROXY_AUTHENTICATION_REQUIRED

tuple PROXY_AUTHENTICATION_REQUIRED
static
Initial value:
= (407,
'Proxy Authentication Required',
'You must authenticate with this proxy before proceeding')

◆ REQUEST_ENTITY_TOO_LARGE

tuple REQUEST_ENTITY_TOO_LARGE
static
Initial value:
= (413, 'Request Entity Too Large',
'Entity is too large')

◆ REQUEST_HEADER_FIELDS_TOO_LARGE

tuple REQUEST_HEADER_FIELDS_TOO_LARGE
static
Initial value:
= (431,
'Request Header Fields Too Large',
'The server is unwilling to process the request because its header '
'fields are too large')

◆ REQUEST_TIMEOUT

tuple REQUEST_TIMEOUT
static
Initial value:
= (408, 'Request Timeout',
'Request timed out; try again later')

◆ REQUEST_URI_TOO_LONG

tuple REQUEST_URI_TOO_LONG
static
Initial value:
= (414, 'Request-URI Too Long',
'URI is too long')

◆ REQUESTED_RANGE_NOT_SATISFIABLE

tuple REQUESTED_RANGE_NOT_SATISFIABLE
static
Initial value:
= (416,
'Requested Range Not Satisfiable',
'Cannot satisfy request range')

◆ RESET_CONTENT

int RESET_CONTENT = 205, 'Reset Content', 'Clear input form for further input'
static

◆ SEE_OTHER

int SEE_OTHER = 303, 'See Other', 'Object moved -- see Method and URL list'
static

◆ SERVICE_UNAVAILABLE

tuple SERVICE_UNAVAILABLE
static
Initial value:
= (503, 'Service Unavailable',
'The server cannot process the request due to a high load')

◆ SWITCHING_PROTOCOLS

tuple SWITCHING_PROTOCOLS
static
Initial value:
= (101, 'Switching Protocols',
'Switching to new protocol; obey Upgrade header')

◆ TEMPORARY_REDIRECT

tuple TEMPORARY_REDIRECT
static
Initial value:
= (307, 'Temporary Redirect',
'Object moved temporarily -- see URI list')

◆ TOO_MANY_REQUESTS

tuple TOO_MANY_REQUESTS
static
Initial value:
= (429, 'Too Many Requests',
'The user has sent too many requests in '
'a given amount of time ("rate limiting")')

◆ UNAUTHORIZED

tuple UNAUTHORIZED
static
Initial value:
= (401, 'Unauthorized',
'No permission -- see authorization schemes')

◆ UNPROCESSABLE_ENTITY

int UNPROCESSABLE_ENTITY = 422, 'Unprocessable Entity'
static

◆ UNSUPPORTED_MEDIA_TYPE

tuple UNSUPPORTED_MEDIA_TYPE
static
Initial value:
= (415, 'Unsupported Media Type',
'Entity body in unsupported format')

◆ UPGRADE_REQUIRED

int UPGRADE_REQUIRED = 426, 'Upgrade Required'
static

◆ USE_PROXY

tuple USE_PROXY
static
Initial value:
= (305, 'Use Proxy',
'You must use proxy specified in Location to access this resource')

◆ VARIANT_ALSO_NEGOTIATES

int VARIANT_ALSO_NEGOTIATES = 506, 'Variant Also Negotiates'
static

The documentation for this class was generated from the following file: