跳转到内容
简体中文

defaultErrorResponse

此内容尚不支持你的语言。

defaultErrorResponse(err): HttpResponse

Defined in: src/http/Route.ts:346

The framework’s default error→response mapping: an HttpError becomes its status + { error, ...extra } JSON (carrying any custom headers); anything else becomes a generic 500 that deliberately does NOT echo the thrown message. Kept in one place so the WebSocket upgrade-reject path and the fallback() wrapper map errors identically.

unknown

HttpResponse