[403] 402
(Payment Required)
は、課金に関する制限により要求が処理されなかったことを示す状態符号です。
[407] 応答の payload body には、アクセス頻度や課金などに関するエラーであることを示す短い文章が含まれるのが普通です。
[408] アクセス状況や課金の状態などを機械可読な形で提示したり、 自動的に支払いを行ったりするような仕組みは存在していません。
[406] かつて 402
応答は、 Web API に (鯖の判断基準による)
過剰なアクセスがあった場合にしばしば用いられていました。現在ではそうした場合は
429
がより適切と考えられています。
[4] RFC 2068, RFC 2616, RFC 7231 のいずれも、 402
(Payment Required
) は理由句が定義されているだけで、
状態符号自体は予約 >>2, >>3 されていて、使われていません。
This code is reserved for future use.
この符号は将来の使用のために予約しています。
[409] RFC 2660 - The Secure HyperText Transfer Protocol ( ( 版)) http://tools.ietf.org/html/rfc2660#section-5.2.1
402 - Failed request
When a request is valid but does not complete successfully (e.g. a card is declined), we return a 402 error code.
402 - Request Failed Parameters were valid but request failed.
本サイトは同時接続数制限2ですので、それを超えるとエラーが出るようにしています。
I want to let you know the API will now respond with (402 - Payment Required) when a shop does not have access to a specific feature. Prior to this change the API would respond with (404 - Not Found).
In addition to this HTTP Status Code there will be an error included in the JSON response:
This shop's plan does not have access to this feature
dailyLimitExceeded402 A daily budget limit set by the developer has been reached.
quotaExceeded402 The requested operation requires more resources than the quota allows. Payment is required to complete the operation.
user402 The requested operation requires some kind of payment from the authenticated user.
[10] XユーザーのCoinbase Developer Platform🛡️さん: 「First, a little history: HTTP 402 “Payment Required” has been a part of the internet’s blueprint for decades, but it was never used. x402 turns this 402 status code into a real payment layer—letting any server request payment, and any client (human or agent) respond with」 / X, , https://x.com/CoinbaseDev/status/1919785226936713369
[11] x402.org, https://www.x402.org/
[12] x402: The Payment Protocol for Agentic Commerce - x402-whitepaper.pdf, , https://www.x402.org/x402-whitepaper.pdf
[13] GitHub - coinbase/x402: A payments protocol for the internet. Built on HTTP., https://github.com/coinbase/x402/
[14] Introducing x402: a new standard for internet-native payments | Coinbase, https://www.coinbase.com/developer-platform/discover/launches/x402