An error thrown when an agent is not authorized.

Hierarchy

  • BaseHttpError
    • UnauthorizedHttpError

Constructors

Properties

cause?: unknown
details?: Dict<unknown>
errorCode: string
message: string
name: string
stack?: string
statusCode: 401
isInstance: ((error: any) => error is HttpError<401>)

Type declaration

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

      Parameters

      • error: any

      Returns error is HttpError<401>

statusCode: 401

The status code corresponding to this error class.

uri: NamedNode<string>

A unique URI identifying this error class.

Methods

  • Returns quads representing metadata relevant to this error.

    Parameters

    • subject: string | Quad_Subject

    Returns Quad[]