Class MethodNotAllowedHttpError

An error thrown when data was found for the requested identifier, but is not supported by the target resource. Can keep track of the methods that are not allowed.

Hierarchy

  • BaseHttpError
    • MethodNotAllowedHttpError

Constructors

Properties

cause?: unknown
details?: Dict<unknown>
errorCode: string
message: string
methods: readonly string[]
name: string
stack?: string
statusCode: 405
isInstance: ((error) => error is HttpError<405>)

Type declaration

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

      Parameters

      • error: any

      Returns error is HttpError<405>

statusCode: 405

The status code corresponding to this error class.

uri: NamedNode<string>

A unique URI identifying this error class.

Methods