An error thrown when incoming data is not supported. Probably because an AsyncHandler returns false on the canHandle call.

Hierarchy

  • BaseHttpError
    • BadRequestHttpError

Constructors

Properties

cause?: unknown
errorCode: string
message: string
name: string
stack?: string
statusCode: 400
isInstance: ((error: unknown) => error is HttpError<400>)

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

statusCode: 400

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