A control hook can fail before it has checked anything: its command may not start, an HTTP request may time out, or execution may return an unexpected exit code. Claude Code 2.1.295 introduces onFailure: "block" for command and HTTP hooks, allowing those failures to stop the action instead of letting it proceed.
The distinction matters wherever a hook is intended to enforce a rule. A check that rejects an action and a check that never ran are different events, but both can now prevent execution when this option is configured. This is a failure-policy setting, not proof that every hook automatically blocks or that the checks themselves are sufficient.
The feature appears in the stable release of October 8 and requires Claude Code 2.1.295 or later. The release notes state no Belgium or EEA restriction. The behavior described here comes from those notes; it has not been independently exercised for this article.
