class documentation

class twisted.web.error.RedirectWithNoLocation(Error): (source)

View In Hierarchy

Exception passed to ResponseFailed if we got a redirect without a Location header field.

Present Since11.1
Instance Variable uri The URI which failed to give a proper location header field.
Method __init__ Initializes a page redirect exception when no location is given.
Instance Variable message Undocumented

Inherited from Error:

Instance Variable status Refers to an HTTP status code, for example http.NOT_FOUND.
Instance Variable response A complete HTML document for an error page.
Method __str__ Undocumented
The URI which failed to give a proper location header field.
(type: bytes)
def __init__(self, code, message, uri): (source)

Initializes a page redirect exception when no location is given.

ParameterscodeRefers to an HTTP status code, for example http.NOT_FOUND. If no message is given, code is mapped to a descriptive string that is used instead. (type: bytes)
messageA short error message. (type: bytes)
uriThe URI which failed to give a proper location header field. (type: bytes)
message = (source)

Undocumented

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.