Skip to content

402 vs 403

Payment Required vs Forbidden

402Payment Required

Time to open your wallet! This code was reserved for when the web would have built-in payments. Still waiting on that future!

HTTP Response
HTTP/1.1 402 Payment Required
Content-Type: application/json

{"error": "Payment required to access this resource"}

403Forbidden

VIP only! You might know who you are, but you're not on the guest list for this party.

HTTP Response
HTTP/1.1 403 Forbidden
Content-Type: application/json

{"error": "Access denied"}
πŸ’³402Payment Required
🚫403Forbidden
Description

Reserved for future use. Originally intended for digital payment systems, but not yet standardized.

Common Causes
  • Paywall or subscription required
  • Payment processing needed
  • Premium content access
Description

The client does not have access rights to the content.

When to Use
  • User is authenticated but lacks required permissions
  • Resource is restricted regardless of authentication
  • IP address or region is blocked
Common Causes
  • Insufficient permissions
  • IP blocked
  • Resource restricted to certain users