> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ctrlrun.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ActionDenied

> The action may not run. `reason` says why, e.g. `unknown_action` (SPEC-v0.1 §3.4).

`ctrlrun.ActionDenied` — class, defined at `src/ctrlrun/errors.py:29`

```python theme={null}
class ActionDenied(CTRLRunError)
    def __init__(message: str | None, reason: str, action_id: str | None)
```

The action may not run. `reason` says why, e.g. `unknown_action` (SPEC-v0.1 §3.4).

## Next

* [Python API index](/reference/api/index).
* [Get started](/get-started/quickstart) · [Why](/why).


## Related topics

- [Errors](/reference/errors.md)
- [AuthorityDenied](/reference/api/AuthorityDenied.md)
- [IdentityError](/reference/api/IdentityError.md)
- [Protect a function](/guides/protect-a-function.md)
- [60-second quickstart](/get-started/quickstart.md)
