What is HTTP 402 (Payment Required)?

In short: the server says "you need to pay before this resource becomes available."

Heads-up: 402 is still marked as Reserved in the HTTP specification, so many browsers and sites never surface it.

How is it different from 401, 403, and 404?

StatusMeaningCommon scenario
401 UnauthorizedAuthentication requiredNot logged in, expired token
403 ForbiddenAuthenticated but not allowedAccount lacks permission
402 Payment RequiredPayment is requiredPay-per-view, micro-payments
404 Not FoundResource missingBroken link, content removed

Why is 402 rarely seen?

The IETF kept 402 "reserved for future use", so most production sites invented their own paywall flows instead—redirecting to checkout pages or returning 200 responses with custom overlays.

What turns 402 into a real payment experience?

That is exactly what x402 tries to solve: converting the "payment required" signal into an automatic one-off checkout.

Keep exploring x402

Further reading