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
errorCode: string
location: string
message: string
name: string
stack?: string
statusCode: 301
isInstance: ((error: unknown) => error is HttpError<301>)

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

statusCode: 301

The status code corresponding to this error class.

uri: NamedNode<string>

A unique URI identifying this error class.

Methods

  • Initializes the error metadata.

    Returns void