A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.

Hierarchy

  • BaseHttpError
    • InternalServerError

Constructors

Properties

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

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

statusCode: 500

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