basalt / http/src / ErrorDetailsRedactor
Type Alias: ErrorDetailsRedactor
> ErrorDetailsRedactor = (details, info) => ErrorDetails | undefined
Defined in: http/src/error-details.ts:210
Filters the (already sanitised) public details of an error before they leave: return the payload to send, or undefined to send none. Its output is sanitised again, and a redactor that throws sends no details — it fails closed.
Parameters
details
info
Returns
ErrorDetails | undefined