Interface RedirectHttpErrorClass<TCode>

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

interface RedirectHttpErrorClass<TCode> {
    new RedirectHttpErrorClassnew (location: string, message?: string, options?: HttpErrorOptions): RedirectHttpError<TCode>;
    isInstance: ((error: unknown) => error is HttpError<TCode>);
    statusCode: TCode;
    uri: NamedNode<string>;
}

Type Parameters

  • TCode extends number = number

Hierarchy

Constructors

Properties

Constructors

Properties

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

Checks whether the given error is an instance of this class.

statusCode: TCode

The status code corresponding to this error class.

uri: NamedNode<string>

A unique URI identifying this error class.