// libSQL error reference

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.

Error
402 Payment Required
Categoría
Remote server and Hrana errors
Mensaje de error
Server returned HTTP status 402 Payment Required

Qué significa

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.

Causas comunes

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

Find the cause

Open the billing portal with `turso org billing` and check the plan with `turso plan show`. Distinguish the three money-adjacent failures: 402 means the account is not in good standing, `BLOCKED` means a monthly quota is exhausted, 429 means a burst rate limit.

Cómo solucionarlo

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

Other ways to handle it

Fix the account state, or change plan with turso plan select <plan> o turso plan upgrade. If overages are the surprise, turso plan overages enable/disable controls whether usage past the quota bills.

Reprodúcelo de forma segura

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.

Preguntas

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?

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

Errores relacionados

More remote server and hrana errors errors

El código y el texto del mensaje son de libSQL / Turso documentation. Explora la lista completa de libSQL error list o buscar cada error de base de datos.

// menos errores, correcciones más rápidas

Work on libSQL in SQLly

A native SQL client for macOS, Windows and Linux with schema-aware IntelliSense, guardrails for risky statements and clear error messages, for libSQL and the other databases you use.

Texto y datos de esta página: CC BY 4.0, con atribución a SQLly (sqlly.app). Código y fragmentos SQL: MIT. Detalles de la licencia El texto citado de los mensajes de error pertenece a su proveedor de base de datos.