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
的可能原因如下:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-02-27 (世界標準時間)。
[null,null,["上次更新時間:2023-02-27 (世界標準時間)。"],[[["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."]]],[]]