/Knowledge/sources/honojs__hono/llms-full/rpc-global-response--part-03--becfb4db5e3d.md
RPC: Global Response (part 03) - hono-docs
RPC: Global Response (part 03) Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt global response Summary...
RPC: Global Response (part 03)
Source evidence: /Sources/honojs__hono/provenance.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 } }
}
>
Metadata
{
"chunk_index": 2,
"citation": "https://hono.dev/llms-full.txt#global-response",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / RPC > Global Response (3)",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 51,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "RPC: Global Response (part 03)",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}