Free auditStart free
GuideError · HTTP status codes

402 Payment Required

HTTP 402 is reserved for future use and has no standard behavior. See why some APIs return it anyway, how to read it, and what to send instead.

3 min
read
4
sources
Oct 23, 2026
updated
Scaplet Editorial Team
author
The short answer

HTTP 402 Payment Required is reserved for future use in HTTP, and MDN calls it nonstandard: no convention exists, so each system uses it its own way. APIs often return it when a payment, subscription or quota check fails. Read the response body for the reason, then fix the billing issue on that service.

  1. What a 402 means and who causes it
  2. What to do as a visitor or customer
  3. What to do as a developer
  4. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02How it works

What to do as a visitor or customer

  1. 1

    Read the message

    Many services put the exact reason on the page or in the response body, such as an expired card.

  2. 2

    Check billing

    Open the account's billing page and look at the payment method, plan status and any unpaid invoice.

  3. 3

    Retry after fixing it

    Once the payment method or plan is valid, repeat the action.

  4. 4

    Contact the provider

    If billing looks fine, send the provider the time, the action and the error text.

03Check it

What to do as a developer

Treat 402 as provider-specific. Look at the API's documentation for what it promises, and parse the error code in the body rather than the status line alone. Retrying the same request unchanged is unlikely to help until the payment problem is fixed.
Abridged MDN example of a payment API using 402
HTTP/1.1 402 Payment Required
Content-Type: application/json

{"error": {
  "code": "expired_card",
  "doc_url": "https://example.com/error-codes#expired-card",
  "message": "The card has expired. Verify expiration or use a different card."
}}
04Explained

What it does to SEO

A 402 is a 4xx response. Google does not index URLs that return a 4xx status code, so a public page that answers Googlebot with 402 will not be indexed, and indexed ones are removed over time. See 4xx errors and Google's documentation on how HTTP status codes affect its crawlers.
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is 402 mainly used for?

It was meant for digital cash and micro-payments. In practice, some payment APIs use it as a catch-all for failed payment requests, though no standard says so.

02What is the difference between 402 and 403?

RFC 9110 reserves 402 for future use, so it has no standard meaning. A 403 means the server understood the request but refuses to fulfill it.

03Is 402 an official HTTP error?

It is registered, but RFC 9110 says it is reserved for future use and MDN calls it nonstandard.

04How do I fix a 402 error?

Read the response body, fix the problem it names, such as the payment method, then retry. If the body gives no reason, ask the provider.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • iana.org
  • google.com
  1. 01RFC 9110: 402 Payment Required (Section 15.5.3)rfc-editor.org · checked 2026-10-25
  2. 02MDN: 402 Payment Requireddeveloper.mozilla.org · checked 2026-10-25
  3. 03IANA HTTP Status Code Registryiana.org · checked 2026-10-25
  4. 04How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane