# 402 Payment Required: 402 Payment Required

> Turso's API returned 402 when the account is past its plan limits or payment lapsed; check billing and plan quotas.

Source: https://sqlly.app/errors/libsql/payment-required-402
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).
Note: Quoted error message text belongs to its database vendor.

- Error: `402 Payment Required`
- Category: Remote server and Hrana errors

Error message:

```text
Server returned HTTP status 402 Payment Required
```

## What it means

Turso's response-code reference lists 402 as payment required, with the advice to check you have an active subscription. Distinguish it from 429: 429 is a rate or quota burst, 402 means the account itself is not in good standing.

## Common causes

- Subscription lapsed or payment failed.
- The free or paid plan no longer covers the resource you are using.

## How to fix it

1. Check plan and billing in the Turso dashboard, then retry.

## Reproduce it safely

```sql
Needs an account actually past its billing: there is no honest repro without one, and the docs mapping (402 means you should check you have an active subscription) is the verifiable part. Do not fabricate a billing failure locally.
```

## How SQLly helps

SQLly surfaces the 402 unchanged on connect, so a lapsed subscription is obvious before any query debugging starts: check billing, not the connection string.

## Questions

### What is the difference between 402, 429, and BLOCKED on Turso?

402 means the account itself is not in good standing (subscription lapsed or payment failed). 429 is a short-term request-rate limit. BLOCKED means a monthly usage quota (row reads, row writes, storage) is exhausted.

### How do I fix a 402 from Turso?

Open `turso org billing` and resolve the subscription or payment, then retry. No connection or query change fixes a billing-state failure.

## Related errors

- [`429 Too Many Requests`](https://sqlly.app/errors/libsql/rate-limited-429): request rate limit hit
- [`409 Conflict`](https://sqlly.app/errors/libsql/conflict-409): 409 Conflict
- [`401 Unauthorized`](https://sqlly.app/errors/libsql/unauthorized-401): 401 Unauthorized: bad or missing auth token

The code and message text are from the [libSQL / Turso documentation](https://docs.turso.tech/).
