Skip to content

covenix / CovenixErrorHandlerOptions

Interface: CovenixErrorHandlerOptions ​

Defined in: src/errors.ts:84

Options for covenixErrorHandler.

Properties ​

formatError? ​

optional formatError?: (error) => unknown

Defined in: src/errors.ts:90

Overrides the response body for a CovenixError. When provided, the response is sent as application/json (rather than the default application/problem+json), since the body is no longer Problem-shaped.

Parameters ​

error ​

CovenixError

Returns ​

unknown