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 = (202, "Accepted", "Request accepted, processing continues off-line")
 
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 = (304, "Not Modified", "Document has not changed since given time")
 
tuple USE_PROXY
 
tuple TEMPORARY_REDIRECT
 
tuple PERMANENT_REDIRECT
 
tuple BAD_REQUEST = (400, "Bad Request", "Bad request syntax or unsupported method")
 
tuple UNAUTHORIZED = (401, "Unauthorized", "No permission -- see authorization schemes")
 
tuple PAYMENT_REQUIRED = (402, "Payment Required", "No payment -- see charging schemes")
 
tuple FORBIDDEN = (403, "Forbidden", "Request forbidden -- authorization will not help")
 
tuple NOT_FOUND = (404, "Not Found", "Nothing matches the given URI")
 
tuple METHOD_NOT_ALLOWED
 
tuple NOT_ACCEPTABLE = (406, "Not Acceptable", "URI not available in preferred format")
 
tuple PROXY_AUTHENTICATION_REQUIRED
 
tuple REQUEST_TIMEOUT = (408, "Request Timeout", "Request timed out; try again later")
 
int CONFLICT = 409, "Conflict", "Request conflict"
 
tuple GONE = (410, "Gone", "URI no longer exists and has been permanently removed")
 
tuple LENGTH_REQUIRED = (411, "Length Required", "Client must specify Content-Length")
 
tuple PRECONDITION_FAILED
 
tuple REQUEST_ENTITY_TOO_LARGE = (413, "Request Entity Too Large", "Entity is too large")
 
tuple REQUEST_URI_TOO_LONG = (414, "Request-URI Too Long", "URI is 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 = (501, "Not Implemented", "Server does not support this operation")
 
tuple BAD_GATEWAY = (502, "Bad Gateway", "Invalid responses from another server/proxy")
 
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 = (202, "Accepted", "Request accepted, processing continues off-line")
static

◆ ALREADY_REPORTED

int ALREADY_REPORTED = 208, "Already Reported"
static

◆ BAD_GATEWAY

tuple BAD_GATEWAY = (502, "Bad Gateway", "Invalid responses from another server/proxy")
static

◆ BAD_REQUEST

tuple BAD_REQUEST = (400, "Bad Request", "Bad request syntax or unsupported method")
static

◆ 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 = (403, "Forbidden", "Request forbidden -- authorization will not help")
static

◆ 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 = (410, "Gone", "URI no longer exists and has been permanently removed")
static

◆ 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 = (411, "Length Required", "Client must specify Content-Length")
static

◆ 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 = (406, "Not Acceptable", "URI not available in preferred format")
static

◆ NOT_EXTENDED

int NOT_EXTENDED = 510, "Not Extended"
static

◆ NOT_FOUND

tuple NOT_FOUND = (404, "Not Found", "Nothing matches the given URI")
static

◆ NOT_IMPLEMENTED

tuple NOT_IMPLEMENTED = (501, "Not Implemented", "Server does not support this operation")
static

◆ NOT_MODIFIED

tuple NOT_MODIFIED = (304, "Not Modified", "Document has not changed since given time")
static

◆ 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 = (402, "Payment Required", "No payment -- see charging schemes")
static

◆ 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 = (413, "Request Entity Too Large", "Entity is too large")
static

◆ 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 = (408, "Request Timeout", "Request timed out; try again later")
static

◆ REQUEST_URI_TOO_LONG

tuple REQUEST_URI_TOO_LONG = (414, "Request-URI Too Long", "URI is too long")
static

◆ 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 = (401, "Unauthorized", "No permission -- see authorization schemes")
static

◆ 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: