HTTP 402 Payment Required

Reserved in the original spec and now used in practice for quota, billing and insufficient-funds conditions.

Why you would test it

Rare enough that most clients have never seen one, which is exactly why it is worth provoking before a payment provider sends you one in production.

Endpoints that return 402

2 endpoints in this playground answer with 402. Every one is free, needs no signup, and can be called from the browser or with curl.

Other client error codes

All HTTP status codes · All 37 mock REST APIs · Getting started guide