Skip to main content

Class: NotAcceptableError

The requested resource cannot produce a response matching the list of acceptable values in the request's headers.

Extends

  • EError

Constructors

new NotAcceptableError()

new NotAcceptableError(message, errorId?): NotAcceptableError

Creates an instance of EError.

Parameters

message: string = 'An error occurred'

The error message.

errorId?: string

An optional error ID.

Returns

NotAcceptableError

Inherited from

EError.constructor

Defined in

packages/core/src/error-handler.ts:11

Properties

errorId?

optional errorId: string;

An optional error ID.

Inherited from

EError.errorId

Defined in

packages/core/src/error-handler.ts:13