# UNAUTHORIZED

This connection is no longer valid.

- **HTTP class:** 401
- **Retryable:** no

## What happened

This connection was revoked (the user disconnected it at their account page or from the new-connection email, or Carnival ended it), so its token is no longer accepted. A missing or malformed token gets an HTTP 401 from the transport instead of this result.

## Fix

Stop calling Carnival with this connection: a retry can't help. The user reconnects Carnival in their client and signs in again.

## What to tell the user

Carnival needs to be reconnected: ask the user to reconnect it in their client and sign in.

## Agent hint

The exact `error.hint` text; Carnival fills each `<…>` for the call.

```text
This Carnival connection is no longer valid. Ask the user to reconnect Carnival.
```

## Related

- [`INSUFFICIENT_SCOPE`](https://carnival-staging.dev/docs/errors/INSUFFICIENT_SCOPE.md): This connection is not allowed to do that.
- [`ACCOUNT_SUSPENDED`](https://carnival-staging.dev/docs/errors/ACCOUNT_SUSPENDED.md): This account cannot publish.

All error codes: [error codes](https://carnival-staging.dev/docs/errors.md)
