twisted.web.error.RedirectWithNoLocation(Error)
class documentationtwisted.web.error
View Source
(View In Hierarchy)
Exception passed to ResponseFailed
if we got a redirect without a Location
header field.
Present Since | 11.1 |
Instance Variable | uri | The URI which failed to give a proper location header field. (type: bytes ) |
Method | __init__ | Initializes a page redirect exception when no location is given. |
Inherited from Error:
Instance Variable | status | Refers to an HTTP status code, for example http.NOT_FOUND . (type: bytes ) |
Instance Variable | response | A complete HTML document for an error page. (type: bytes ) |
Method | __str__ | Undocumented |
Initializes a page redirect exception when no location is given.
Parameters | code | Refers 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 ) |
message | A short error message. (type: bytes ) | |
uri | The URI which failed to give a proper location header field. (type: bytes ) |