basalt / http/src / reportHttpError
Function: reportHttpError()
> reportHttpError(report, sink?): void
Defined in: http/src/error-report.ts:93
5xx to error with the error object (the stack is the point — it is a bug); 4xx to warn with its code and reason (a validation failure's stack is noise).
Never throws: a logging sink that fails must not turn a handled 400 into an unhandled crash inside the error handler itself.
Parameters
report
sink?
HttpLogSink = consoleSink
Returns
void