[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 されていて、使われていません。
[2] RFC 2068 & 2616 (HTTP/1.1) 10.4.3 402 Payment Required
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>
[5] REST API Reference - PayPal Developer ( 版) <https://developer.paypal.com/docs/api/>
402 - Failed request
[6] Stripe API Reference ( 版) <https://stripe.com/docs/api#errors>
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.
[7] 402 Payment Requiredが出た方へ ( ()) <http://s1.gptwm.com/402error.html>
本サイトは同時接続数制限2ですので、それを超えるとエラーが出るようにしています。
[8] New HTTP Status Code (402 - Payment Required) - API Announcements — Ecommerce University ( ()) <https://ecommerce.shopify.com/c/api-announcements/t/new-http-status-code-402-payment-required-215030>
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
[9] Google APIs - Global domain errors | YouTube Data API | Google Developers ( ()) <https://developers.google.com/youtube/v3/docs/core_errors#PAYMENT_REQUIRED>
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.