# HCA_SESSION_INVALID

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

What HCA_SESSION_INVALID 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_SESSION_INVALID

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

## What happened [#what-happened]

The HCA session is expired, revoked or for another resolver.

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

| Title | Message | Action |
| --- | --- | --- |
| Session ended | Your session has expired or was revoked. | Start a new session. |

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

Authorize a new session with hca.authorizeSession.

## 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]

No action names this code in its documented errors.

## Catch it [#catch-it]

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