{"version":"2.1.295","anchor":"hook-http-config-gains-onfailure-extra-mime-to-extension-ma","canonical_anchor":"hook-http-config-gains-onfailure-extra-mime-to-extension-ma","heading":"HTTP hooks accept an onFailure setting, and more web files get proper extensions","tier":"use","area":"Hooks","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.295\/e\/hook-http-config-gains-onfailure-extra-mime-to-extension-ma","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.295","markdown":"### HTTP hooks accept an onFailure setting, and more web files get proper extensions\n\nHTTP hooks gain an onFailure setting, and icons, stylesheets, scripts, fonts and similar files now get their own file extensions\n\n**Unclear.** What the new `onFailure` setting does and which values it accepts is not stated.\n\n**What**\n\nHooks are actions you configure Claude Code to run at certain points, such as before or after it uses a tool. An HTTP hook sends a web request to an address you choose. The settings for an HTTP hook now accept an `onFailure` field.\n\nSeparately, when Claude Code saves a file and works out its extension from the file's type, it now recognises more types. Before, all of the following were saved with the generic extension `.bin`:\n\n- `ico` (icons)\n\n- `css` (stylesheets)\n\n- `js` (scripts)\n\n- `xml`\n\n- `webmanifest`\n\n- `woff` and `woff2` (fonts)\n\n- `ttf` and `otf` (fonts)\n\n- `wasm` (WebAssembly programs)\n\n**Why**\n\nFiles such as icons, stylesheets, scripts and fonts are now saved with names that say what they are, so other programs can open them correctly.\n\n- Area: Hooks\n- Names: `onFailure`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: no"}