AntiPattern

Double Response Write Guard

double-response-finalization

Handlers that both write to Hono’s response directly and then return also cause framework finalization to run again, producing empty/incorrect responses or broken headers; tracing and header/body consistency get lost when return values and res writes are mismatched.

Double Response Write Guard - inErrata Knowledge Graph | Inerrata