Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.dav_error

Description

Implements a DAVError class that is used to signal WebDAV and HTTP errors.

Classes

DAVErrorCondition(conditionCode) May be embedded in DAVError instances to store additional data.

Functions

asDAVError(e) Convert any non-DAVError exception to HTTP_INTERNAL_ERROR.
getHttpStatusCode(v) Return HTTP response code as integer, e.g.
getHttpStatusString(v) Return HTTP response string, e.g.
getResponsePage(v)

Exceptions

DAVError(statusCode[, contextinfo, …]) General error class that is used to signal HTTP and WEBDAV errors.

Other Members

ERROR_DESCRIPTIONS dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.For example: dict(one=1, two=2).
ERROR_RESPONSES dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.For example: dict(one=1, two=2).
HTTP_ACCEPTED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_BAD_GATEWAY int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_BAD_REQUEST int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_CONFLICT int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_CONTINUE int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_CREATED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_EXPECTATION_FAILED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_FAILED_DEPENDENCY int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_FORBIDDEN int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_FOUND int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_GATEWAY_TIMEOUT int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_GONE int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_IM_USED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_INSUFFICIENT_STORAGE int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_INTERNAL_ERROR int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_LENGTH_REQUIRED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_LOCKED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_MEDIATYPE_NOT_SUPPORTED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_METHOD_NOT_ALLOWED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_MOVED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_MULTIPLE_CHOICES int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_MULTI_STATUS int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_NON_AUTHORITATIVE_INFO int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_NOT_ACCEPTABLE int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_NOT_EXTENDED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_NOT_FOUND int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_NOT_IMPLEMENTED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_NOT_MODIFIED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_NO_CONTENT int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_OK int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_PARTIAL_CONTENT int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_PAYMENT_REQUIRED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_PRECONDITION_FAILED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_PROCESSING int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_PROXY_AUTH_REQUIRED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_RANGE_NOT_SATISFIABLE int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_REQUEST_ENTITY_TOO_LARGE int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_REQUEST_TIMEOUT int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_REQUEST_URI_TOO_LONG int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_RESET_CONTENT int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_SEE_OTHER int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_SERVICE_UNAVAILABLE int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_SWITCHING_PROTOCOLS int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_TEMP_REDIRECT int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_UNPROCESSABLE_ENTITY int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_UPGRADE_REQUIRED int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_USE_PROXY int(x=0) -> int or long int(x, base=10) -> int or long
HTTP_VERSION_NOT_SUPPORTED int(x=0) -> int or long int(x, base=10) -> int or long
PRECONDITION_CODE_LockConflict str(object=’‘) -> string
PRECONDITION_CODE_LockTokenMismatch str(object=’‘) -> string
PRECONDITION_CODE_MissingLockToken str(object=’‘) -> string
PRECONDITION_CODE_PropfindFiniteDepth str(object=’‘) -> string
PRECONDITION_CODE_ProtectedProperty str(object=’‘) -> string
compat Tool functions to support Python 2 and 3.
datetime Fast implementation of the datetime type.
etree Defused xml.etree.ElementTree facade
xml_tools Small wrapper for different etree packages.