module documentation
(source)

Exception definitions for twisted.web.
Class ​Error A basic HTTP error.
Class ​Excessive​Buffering​Error The HTTP/2 protocol has been forced to buffer an excessive amount of outbound data, and has therefore closed the connection and dropped all outbound data.
Class ​Flattener​Error An error occurred while flattening an object.
Class ​Infinite​Redirection HTTP redirection is occurring endlessly.
Class ​Missing​Render​Method Tried to use a render method which does not exist.
Class ​Missing​Template​Loader MissingTemplateLoader is raised when trying to render an Element without a template loader, i.e. a loader attribute.
Class ​Page​Redirect A request resulted in an HTTP redirect.
Class ​Redirect​With​No​Location Exception passed to ResponseFailed if we got a redirect without a Location header field.
Class ​Render​Error Base exception class for all errors which can occur during template rendering.
Class ​Scheme​Not​Supported The scheme of a URI was not one of the supported values.
Class ​Unexposed​Method​Error Raised on any attempt to get a method which has not been exposed.
Class ​Unfilled​Slot During flattening, a slot with no associated data was encountered.
Class ​Unsupported​Method Raised by a resource when faced with a strange request method.
Class ​Unsupported​Special​Header A HTTP/2 request was received that contained a HTTP/2 pseudo-header field that is not recognised by Twisted.
Class ​Unsupported​Type During flattening, an object of a type which cannot be flattened was encountered.
Function _code​To​Message Returns the response message corresponding to an HTTP code, or None if the code is unknown or unrecognized.
def _codeToMessage(code): (source)
Returns the response message corresponding to an HTTP code, or None if the code is unknown or unrecognized.
Parameters
code:bytesRefers to an HTTP status code, for example http.NOT_FOUND.
Returns
bytesA string message or none