/Knowledge/sources/honojs__hono/llms-full/streaming-helper-error-handling--part-02--cd8d1db5f03c.md
Streaming Helper: Error Handling (part 02) - hono-docs
Streaming Helper: Error Handling (part 02) Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt error handl...
Streaming Helper: Error Handling (part 02)
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#error-handling
Summary
onError is a hook to handle errors before the response is sent and overwrite the response. However, when the callback function is executed, the stream has already started, so it cannot be overwritten. :::
Content
onError is a hook to handle errors before the response is sent and overwrite the response. However, when the callback function is executed, the stream has already started, so it cannot be overwritten.
:::
Metadata
{
"chunk_index": 1,
"citation": "https://hono.dev/llms-full.txt#error-handling",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Streaming Helper > Error Handling (2)",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 677,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Streaming Helper: Error Handling (part 02)",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}