402 Payment Required

402 Payment Required

When you encounter the 402 Payment Required status code, it means the server is informing you that access to the requested resource requires payment or subscription.

You can Check Your URLs HTTP Code for FREE

Introduction
In Action
Sample
Conclusion

Introduction

When you encounter the 402 Payment Required status code, it means the server is informing you that access to the requested resource requires payment or subscription.

Before you can proceed, you need to make the necessary payment to gain access to the resource.

In Action

When you encounter the 402 Payment Required status code, it means that access to the requested resource is restricted, and you may need to make a payment or fulfill some other condition to gain access.

However, this status code is currently not widely used and its specific meaning may vary depending on the service or application you are using.

Keep in mind that search engines won’t index URLs with this status code, and it is reserved for potential future use or specific custom implementations by service providers.

Sample

In the example scenario, when the client requests a resource, the server responds with the 402 Payment Required status, which means that the client is currently unable to access the requested resource without making a payment or fulfilling some other requirement.

Request

GET /tech-news HTTP/1.1
Host: www.example.com

Response

HTTP/1.1 402 Payment required

Conclusion

The 402 Payment Required status code indicates that access to the requested resource is restricted, and the user needs to fulfill a payment or some other condition to gain access. This response is currently not widely used and may be subject to further definition in the future.

Related articles

999 Request Denied

999 Request Denied The 999 HTTP response status code is...

599 Network Connect Timeout Error

599 Network Connect Timeout Error The 599 HTTP response status...

598 Network read timeout error

598 Network read timeout error The 598 HTTP response status...

561 Unauthorized

561 Unauthorized The 561 HTTP response status code means there...

530 Site Frozen

530 Site Frozen The 530 HTTP response status code is...

999 Request Denied

0
999 Request Denied The 999 HTTP response status code is an unofficial catch-all error code returned...

599 Network Connect Timeout Error

0
599 Network Connect Timeout Error The 599 HTTP response status code indicates a timeout when trying...

598 Network read timeout error

0
598 Network read timeout error The 598 HTTP response status code indicates a timeout occurred during...

561 Unauthorized

0
561 Unauthorized The 561 HTTP response status code means there was an authentication failure. You can Check...

530 Site Frozen

0
530 Site Frozen The 530 HTTP response status code is a specialized server error used by...