{"version":"2.1.281","anchor":"permission-mode-validation-returns-error-codes","canonical_anchor":"permission-mode-validation-returns-error-codes","heading":"Permission-mode validation returns error codes","tier":null,"area":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/permission-mode-validation-returns-error-codes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Permission-mode validation returns error codes\n\nErrors from checking a permission mode now carry a code such as invalid_mode or bypass_disabled\n\n**What**\n\nA permission mode controls how often Claude Code asks you before it acts. When a requested mode fails its checks, the error now comes with one of these codes:\n\n- `invalid_mode`\n\n- `bypass_restricted`\n\n- `bypass_disabled`\n\n- `bypass_not_launched`\n\n**Why**\n\nA program reacting to these errors can tell the different kinds of failure apart by their code, instead of having to read the wording of the message."}