covenix / CovenixErrorHandlerOptions
Interface: CovenixErrorHandlerOptions
Defined in: src/errors.ts:84
Options for covenixErrorHandler.
Properties
formatError?
optionalformatError?: (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
Returns
unknown
