Skip to content

402 Payment Required (HTTP Status Code 402)

Updated: at 09:12 AM

HTTP status code 402 is a non-standard status code that is reserved for future use. This status code was initially created to support digital cash or micropayment systems, indicating that the requested content will only be provided after the client has completed payment.

In practice, the usage of the 402 status code is not widespread, and different systems may use it in various ways. Sometimes, it is used on commercial websites or services to inform users that payment is required before they can access the desired content or features. If a user’s payment information cannot be verified, or if the payment has expired or become invalid, the server may return a 402 status code.

General Steps for Handling 402 Status Code

It is worth noting that although the 402 status code was designed for payment systems, there is currently no standard usage convention, and it is rarely used in practice. In fact, no browsers support the 402 status code, and errors are often displayed as a generic 4xx status code. If you are a website administrator, ensure that your site uses the latest encryption technologies to protect users’ payment information.