/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-global-response-f433bf2f2622-global-response-s0051-c0002.md
Global Response (3) - hono-docs
Global Response (3) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt global response Summary You c...
Global Response (3)
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#global-response
Summary
You can also define multiple global error status codes at once: ts type AppWithErrors = ApplyGlobalResponse
Content
You can also define multiple global error status codes at once:
type AppWithErrors = ApplyGlobalResponse<
typeof app,
{
401: { json: { error: string; message: string } }
500: { json: { error: string; message: string } }
}
>