All HTTP status codes
4xx Client Error
RFC 9110

402 Payment Required

Reserved for future use; sometimes used by APIs requiring payment.

What it means

HTTP 402 Payment Required was originally reserved for digital payment systems but is now used by some APIs (Stripe, GitHub) to signal that the request requires payment, an active subscription, or has hit a rate limit on the free tier.

When it's used

Paid API tiers signaling that the user has hit a quota or needs to upgrade.

Common causes
  • Free tier quota exceeded
  • Subscription expired or invoice unpaid
  • Premium feature accessed without entitlement
How to fix it
  • Update billing details with the API provider
  • Upgrade to a paid plan
  • Check the response body for which feature requires payment
  • Implement client-side handling that prompts the user to upgrade
Example response
HTTP/1.1 402 Payment Required
Content-Type: application/json

{"error":"Subscription required"}
SEO impact

Not used for HTML pages. SEO-irrelevant.