class documentation

class WWWError(Error): (source)

Known subclasses: zim.www.WebPageNotFoundError, zim.www.WebPathNotValidError

View In Hierarchy

Error with http error code
Method __init__ No summary
Class Variable statusstring Undocumented
Instance Variable headers Undocumented
Instance Variable msg Undocumented
Instance Variable status Undocumented

Inherited from Error:

Method __repr__ Undocumented
Method __str__ Undocumented
Instance Variable description Undocumented
def __init__(self, msg, status='500', headers=None): (source)
Constructor
Parameters
msgspecific error message - will be appended after the standard error string
statuserror code, e.g. '500' for "Internal Server Error" or '404' for "Not Found" - see http specifications for valid error codes
headersadditional http headers for the error response, list of 2-tuples with header name and value
statusstring: dict[str, str] = (source)

Undocumented

headers = (source)

Undocumented

Undocumented

status = (source)

Undocumented