# 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.

Canonical: https://scaplet.com/errors/http/402

Guide Error · HTTP status codes

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

402 4xx · Client error

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](#what-a-402-means-and-who-causes-it)
2. [What to do as a visitor or customer](#what-to-do-as-a-visitor-or-customer)
3. [What to do as a developer](#what-to-do-as-a-developer)
4. [What it does to SEO](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F402%20(%22402%20Payment%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F402%20(%22402%20Payment%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F402%20(%22402%20Payment%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F402%20(%22402%20Payment%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_How services tend to use 402

## What a 402 means and who causes it

RFC 9110 says: "The 402 (Payment Required) [status code](/glossary/http-status-codes) is reserved for future use." The IANA registry lists it as Payment Required under RFC 9110. MDN adds that it was created to enable digital cash or micro-payment systems, and that no standard use convention exists, so different systems use it in different contexts.

Use

### Payment API failure

What it usually points to

The card, account or transfer was rejected

Where to look

The JSON error code and message in the body

Use

### Paid access

What it usually points to

Content is not available until the client makes a payment, as MDN describes the original intent

Where to look

The provider's pricing or billing page

Use

### Anything else

What it usually points to

Whatever that provider defines

Where to look

The provider's API documentation

Because there is no standard, a 402 means whatever the service that sent it says. The service, not your browser or network, is the cause. MDN's example is a payment API that uses 402 as a generic catch-all for failed payment requests, where the body reports an expired card.

_02_How 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.

_03_Check 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.

**If you run the API**Document exactly when you send 402 and what a client should do. If you want standard behavior instead, use [403 Forbidden](/errors/http/403) for refused access, [401](/errors/http/401) for missing credentials or [429](/errors/http/429) for rate limits. RFC 9110 says 403 means the server understood the request but refuses to fulfill it.

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." }}
```

_04_Explained

## 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](/ai-crawlers/googlebot) with 402 will not be indexed, and indexed ones are removed over time. See [4xx errors](/seo-issues/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.

_01_ What 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.

_02_ What 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.

_03_ Is 402 an official HTTP error?

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

_04_ How 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. 01 [RFC 9110: 402 Payment Required (Section 15.5.3)](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [MDN: 402 Payment Required](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/402) developer.mozilla.org · checked 2026-10-25
3. 03 [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) iana.org · checked 2026-10-25
4. 04 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn HTTP 401 Unauthorized HTTP status codes](/errors/http/401) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next 403 Forbidden HTTP status codes](/errors/http/403) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[401 Unauthorized in Spring Boot](/errors/http/401/spring-boot) [401 Unauthorized in the WordPress REST API](/errors/http/401/wordpress) [403 Forbidden in Apache](/errors/http/403/apache)

More in HTTP status codes
[HTTP 408 Request Timeout](/errors/http/408) [HTTP 409 Conflict](/errors/http/409) [HTTP 412 Precondition Failed](/errors/http/412) [HTTP 431 Request Header Fields Too Large](/errors/http/431) [HTTP 499 Client Closed Request](/errors/http/499) [HTTP 500 Internal Server Error](/errors/http/500) [HTTP 501 Not Implemented](/errors/http/501) [HTTP redirect codes](/errors/http/http-redirect-codes) [HTTP status code list](/errors/http/http-status-code-list) [REST API status codes](/errors/http/rest-api-status-codes) [100 Continue](/errors/http/100) [101 Switching Protocols](/errors/http/101) [402 Payment Required](/errors/http/402) [403 Forbidden](/errors/http/403) [404 Not Found](/errors/http/404) [406 Not Acceptable](/errors/http/406) [411 Length Required](/errors/http/411) [413 Request Entity Too Large](/errors/http/413) [414 URI Too Long](/errors/http/414) [415 Unsupported Media Type](/errors/http/415) [416 Range Not Satisfiable](/errors/http/416) [417 Expectation Failed](/errors/http/417) [418 I'm a Teapot](/errors/http/418) [421 Misdirected Request](/errors/http/421)

Terms on this page
[HTTP status codes](/glossary/http-status-codes)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
