Class MovedPermanentlyHttpError

Error used for resources that have been moved permanently. Methods other than GET may or may not be changed to GET in subsequent requests.

Hierarchy

  • BaseHttpError
    • MovedPermanentlyHttpError

Constructors

Properties

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

Type declaration

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

      Parameters

      • error: any

      Returns error is HttpError<301>

statusCode: 301

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[]