콘텐츠로 이동
한국어

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