Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`web`.`error``

module documentation
(source)

Exception definitions for `twisted.web`.

Exception | `Error` | A basic HTTP error.
Exception | `ExcessiveBufferingError` | 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.
Exception | `FlattenerError` | An error occurred while flattening an object.
Exception | `InfiniteRedirection` | HTTP redirection is occurring endlessly.
Exception | `MissingRenderMethod` | Tried to use a render method which does not exist.
Exception | `MissingTemplateLoader` | `MissingTemplateLoader` is raised when trying to render an Element without a template loader, i.e. a `loader` attribute.
Exception | `PageRedirect` | A request resulted in an HTTP redirect.
Exception | `RedirectWithNoLocation` | Exception passed to `ResponseFailed` if we got a redirect without a `Location` header field.
Exception | `RenderError` | Base exception class for all errors which can occur during template rendering.
Exception | `SchemeNotSupported` | The scheme of a URI was not one of the supported values.
Exception | `UnexposedMethodError` | Raised on any attempt to get a method which has not been exposed.
Exception | `UnfilledSlot` | During flattening, a slot with no associated data was encountered.
Exception | `UnsupportedMethod` | Raised by a resource when faced with a strange request method.
Exception | `UnsupportedSpecialHeader` | A HTTP/2 request was received that contained a HTTP/2 pseudo-header field that is not recognised by Twisted.
Exception | `UnsupportedType` | During flattening, an object of a type which cannot be flattened was encountered.
Function | `_codeToMessage` | 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:`bytes` | Refers to an HTTP status code, for example `http.NOT_FOUND`.
Returns
`bytes` | A string message or none