Interface RedirectHttpErrorClass<TCode>

Interface describing what a RedirectHttpError class should look like. Makes sure a location value is always needed.

Type Parameters

  • TCode extends number = number

Hierarchy

Constructors

Properties

Constructors

Properties

isInstance: ((error) => error is HttpError<TCode>)

Type declaration

    • (error): error is HttpError<TCode>
    • Checks whether the given error is an instance of this class.

      Parameters

      • error: unknown

      Returns error is HttpError<TCode>

statusCode: TCode

The status code corresponding to this error class.

uri: NamedNode<string>

A unique URI identifying this error class.