Interface HttpErrorClass<TCode>

Interface describing what an HttpError class should look like. This helps us make sure all HttpError classes have the same utility static functions.

Type Parameters

  • TCode extends number = number

Hierarchy

  • HttpErrorClass

Constructors

Properties

Constructors

Properties

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

Type declaration

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

      Parameters

      • error: any

      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.