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

class documentation

`class RedirectWithNoLocation(Error): (source)`

View In Hierarchy

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

Present Since
11.1

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

Inherited from `Error`:

Method | `__str__` | Undocumented
Instance Variable | `response` | A complete HTML document for an error page.
Instance Variable | `status` | Refers to an HTTP status code, for example `http.NOT_FOUND`.

def __init__(self, code, message, uri): (source)
overrides `twisted.web.error.Error.__init__`
Initializes a page redirect exception when no location is given.

Parameters
code:`bytes` | 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.
message:`bytes` | A short error message.
uri:`bytes` | The URI which failed to give a proper location header field.

message = (source)
overrides `twisted.web.error.Error.message`

Undocumented

uri: `bytes` = (source)
The URI which failed to give a proper location header field.