Package aquarium :: Package util :: Module HTTPResponses
[show private | hide private]
[frames | no frames]

Module aquarium.util.HTTPResponses

Create constants for the HTTP responses.

See also BaseHTTPServer.BaseHTTPRequestHandler.responses in the Python standard library. In Python 2.4, these were added to httplib in the Python standard library, however, older code still relies on their being defined here, which is probably harmless.


Variable Summary
int ACCEPTED = 202                                                                   
int BAD_GATEWAY = 502                                                                   
int BAD_REQUEST = 400                                                                   
int CONFLICT = 409                                                                   
int CONTINUE = 100                                                                   
int CREATED = 201                                                                   
int EXPECTATION_FAILED = 417                                                                   
int FORBIDDEN = 403                                                                   
int FOUND = 302                                                                   
int GATEWAY_TIMEOUT = 504                                                                   
int GONE = 410                                                                   
int HTTP_VERSION_NOT_SUPPORTED = 505                                                                   
int INTERNAL_ERROR = 500                                                                   
int LENGTH_REQUIRED = 411                                                                   
int METHOD_NOT_ALLOWED = 405                                                                   
int MOVED_PERMANENTLY = 301                                                                   
int MULTIPLE_CHOICES = 300                                                                   
int NO_RESPONSE = 204                                                                   
int NON_AUTHORITATIVE_INFORMATION = 203                                                                   
int NOT_ACCEPTABLE = 406                                                                   
int NOT_FOUND = 404                                                                   
int NOT_IMPLEMENTED = 501                                                                   
int NOT_MODIFIED = 304                                                                   
int OK = 200                                                                   
int PARTIAL_CONTENT = 206                                                                   
int PAYMENT_REQUIRED = 402                                                                   
int PRECONDITION_FAILED = 412                                                                   
int PROXY_AUTHENTICATION_REQUIRED = 407                                                                   
int REQUEST_ENTITY_TOO_LARGE = 413                                                                   
int REQUEST_TIME_OUT = 408                                                                   
int REQUEST_URI_TOO_LONG = 414                                                                   
int REQUESTED_RANGE_NOT_SATISFIABLE = 416                                                                   
int RESET_CONTENT = 205                                                                   
int SEE_OTHER = 303                                                                   
int SERVICE_TEMPORARILY_OVERLOADED = 503                                                                   
int SWITCHING_PROTOCOLS = 101                                                                   
int TEMPORARY_REDIRECT = 307                                                                   
int UNAUTHORIZED = 401                                                                   
int UNSUPPORTED_MEDIA_TYPE = 415                                                                   
int USE_PROXY = 305                                                                   

Variable Details

ACCEPTED

Type:
int
Value:
202                                                                   

BAD_GATEWAY

Type:
int
Value:
502                                                                   

BAD_REQUEST

Type:
int
Value:
400                                                                   

CONFLICT

Type:
int
Value:
409                                                                   

CONTINUE

Type:
int
Value:
100                                                                   

CREATED

Type:
int
Value:
201                                                                   

EXPECTATION_FAILED

Type:
int
Value:
417                                                                   

FORBIDDEN

Type:
int
Value:
403                                                                   

FOUND

Type:
int
Value:
302                                                                   

GATEWAY_TIMEOUT

Type:
int
Value:
504                                                                   

GONE

Type:
int
Value:
410                                                                   

HTTP_VERSION_NOT_SUPPORTED

Type:
int
Value:
505                                                                   

INTERNAL_ERROR

Type:
int
Value:
500                                                                   

LENGTH_REQUIRED

Type:
int
Value:
411                                                                   

METHOD_NOT_ALLOWED

Type:
int
Value:
405                                                                   

MOVED_PERMANENTLY

Type:
int
Value:
301                                                                   

MULTIPLE_CHOICES

Type:
int
Value:
300                                                                   

NO_RESPONSE

Type:
int
Value:
204                                                                   

NON_AUTHORITATIVE_INFORMATION

Type:
int
Value:
203                                                                   

NOT_ACCEPTABLE

Type:
int
Value:
406                                                                   

NOT_FOUND

Type:
int
Value:
404                                                                   

NOT_IMPLEMENTED

Type:
int
Value:
501                                                                   

NOT_MODIFIED

Type:
int
Value:
304                                                                   

OK

Type:
int
Value:
200                                                                   

PARTIAL_CONTENT

Type:
int
Value:
206                                                                   

PAYMENT_REQUIRED

Type:
int
Value:
402                                                                   

PRECONDITION_FAILED

Type:
int
Value:
412                                                                   

PROXY_AUTHENTICATION_REQUIRED

Type:
int
Value:
407                                                                   

REQUEST_ENTITY_TOO_LARGE

Type:
int
Value:
413                                                                   

REQUEST_TIME_OUT

Type:
int
Value:
408                                                                   

REQUEST_URI_TOO_LONG

Type:
int
Value:
414                                                                   

REQUESTED_RANGE_NOT_SATISFIABLE

Type:
int
Value:
416                                                                   

RESET_CONTENT

Type:
int
Value:
205                                                                   

SEE_OTHER

Type:
int
Value:
303                                                                   

SERVICE_TEMPORARILY_OVERLOADED

Type:
int
Value:
503                                                                   

SWITCHING_PROTOCOLS

Type:
int
Value:
101                                                                   

TEMPORARY_REDIRECT

Type:
int
Value:
307                                                                   

UNAUTHORIZED

Type:
int
Value:
401                                                                   

UNSUPPORTED_MEDIA_TYPE

Type:
int
Value:
415                                                                   

USE_PROXY

Type:
int
Value:
305                                                                   

Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 http://epydoc.sf.net