コンテンツにスキップ
日本語

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