# HCA_ACTION_NOT_ALLOWED

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

What HCA_ACTION_NOT_ALLOWED means, why HcaError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

Source: https://ensforge.com/docs/reference/errors/HCA_ACTION_NOT_ALLOWED

<ErrorMeta errorClass="HcaError" href="/docs/reference/errors/hca-error" package="@ensforge/hca" />

## What happened [#what-happened]

The HCA session policy does not allow this call.

## What to show users [#what-to-show-users]

| Title | Message | Action |
| --- | --- | --- |
| Not allowed | Your session does not allow this action. | Approve it from your wallet instead. |

## How to fix [#how-to-fix]

Sessions may register names, deploy the session resolver and set its records; send other calls as the owner.

## Retry safety [#retry-safety]

Retrying the same call fails the same way until the cause is fixed (`retryable: false`).

## Actions that throw it [#actions-that-throw-it]

| Action | When |
| --- | --- |
| [`hca.checkSessionCalls`](/docs/reference/hca/hca/check-session-calls) | for the first call outside the policy. |

## Catch it [#catch-it]

Check `error instanceof HcaError && error.code === "HCA_ACTION_NOT_ALLOWED"`. See [Handle errors](/docs/sdk/handle-errors).