HTTP ステータス コード
HTTP POST
または HTTP GET
リクエストへのレスポンスとしてサーバーが生成できる HTTP ステータス コード。
200 OK
: リクエストが成功しました。
400 Bad Request
: 引数が無効です(リクエスト ペイロードが無効です)。
403 Forbidden
: 権限が拒否されました(無効な API キーなど)。
429 Resource Exhausted
: リソース割り当てが不足しているか、レート制限に達しています。
500 Internal Server Error
: 内部サーバーエラー(リクエストを再試行してください)。
503 Service Unavailable
: 使用不可。
504 Gateway Timeout
: 期限を過ぎています(リクエストを再試行してください)。
注: 失敗した HTTP レスポンス(つまり、200 OK
以外の HTTP ステータス コード)を受け取ったクライアントは、バックオフ モードにする必要があります。
HTTP ステータス コード 400 Bad Request
を受け取る理由として、次のことが考えられます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-02-27 UTC。
[null,null,["最終更新日 2023-02-27 UTC。"],[[["The server generates HTTP status codes like `200 OK` for success and various error codes (`400`, `403`, `429`, `500`, `503`, `504`) for different issues encountered during `POST` or `GET` requests."],["Clients receiving unsuccessful HTTP responses (any code other than `200 OK`) should enter back-off mode to avoid overwhelming the server."],["`400 Bad Request` errors can arise from invalid arguments in requests to `fullHashes.find`, `threatListUpdates.fetch`, or `threatMatches.find` methods, such as invalid hashes, empty update requests, or missing threat entry types."]]],["The server responds to HTTP `POST` or `GET` requests with various status codes. `200 OK` indicates success. Errors include `400 Bad Request` for invalid input, `403 Forbidden` for permission issues, `429 Resource Exhausted` for quota/rate limits, `500` for internal errors, `503` for unavailability, and `504` for timeouts. A non-`200 OK` response requires clients to enter back-off mode. `400` errors may occur due to invalid hashes, empty update requests, or missing threat information.\n"]]