Skip to content

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.

string

Optional request ID to include in the response body.

string = "An unexpected error occurred"

Response

A 500 Response with a generic error message.