Skip to main content
apiguide.dev

HTTP 402 — Payment Required

Reserved for future use. Used in modern APIs to indicate subscription limits or billing issues.

Status CodeHTTP 402
CategoryClient Error (4xx)
API Error Subtypes0 error schemas
HTTP Headers0 headers

What does HTTP status code 402 mean?

The 402 Payment Required status code is an uncommon standard code reserved for future use, but widely adopted in modern SaaS APIs to indicate financial restrictions.

When to use it in APIs

Use 402 when a tenant’s subscription has expired, credit card processing fails, or a client has exhausted their unpaid plan limits and needs to upgrade to continue.

How it compares to other codes

  • 403 Forbidden: Restricts authorization based on roles or rules, whereas 402 restricts access strictly due to billing/payment state.

Specific API Error Types for 402

No specific Problem+JSON schemas have been defined for HTTP 402 on apiguide.dev yet.

Associated HTTP Headers

No specific HTTP headers are explicitly linked to HTTP 402 in our directory yet.

Related HTTP Status Codes