http_exceptions

Low-level http related exceptions.

Module Contents

Classes

HttpProcessingError(self) HTTP error.
BadHttpMessage(self,message)
HttpBadRequest()
PayloadEncodingError() Base class for payload errors
ContentEncodingError() Content encoding error.
TransferEncodingError() transfer encoding error.
ContentLengthError() Not enough data for satisfy content length header.
LineTooLong(self,line,limit=”Unknown”,actual_size=”Unknown”)
InvalidHeader(self,hdr)
BadStatusLine(self,line=”“)
InvalidURLError()
class HttpProcessingError

HTTP error.

Shortcut for raising HTTP errors with custom code, message and headers.

code: HTTP Error code. message: (optional) Error message. headers: (optional) Headers to be sent in response, a list of pairs

__init__()
class BadHttpMessage(message)
__init__(message)
class HttpBadRequest
class PayloadEncodingError

Base class for payload errors

class ContentEncodingError

Content encoding error.

class TransferEncodingError

transfer encoding error.

class ContentLengthError

Not enough data for satisfy content length header.

class LineTooLong(line, limit="Unknown", actual_size="Unknown")
__init__(line, limit="Unknown", actual_size="Unknown")
class InvalidHeader(hdr)
__init__(hdr)
class BadStatusLine(line="")
__init__(line="")
class InvalidURLError