defaultErrorResponse
defaultErrorResponse(
requestId?,message?):Response
Defined in: src/core/errors.ts:98
Produce a generic 500 error response for unexpected (non-GatewayError) errors.
Used by the global error handler when an unrecognized error reaches the gateway boundary. Does not leak internal error details.
Parameters
Section titled “Parameters”requestId?
Section titled “requestId?”string
Optional request ID to include in the response body.
message?
Section titled “message?”string = "An unexpected error occurred"
Returns
Section titled “Returns”Response
A 500 Response with a generic error message.