รหัสสถานะ HTTP
รหัสสถานะ HTTP ที่เซิร์ฟเวอร์สามารถสร้างเพื่อตอบสนองต่อคําขอ HTTP POST
หรือ HTTP GET
:
200 OK
: คําขอสําเร็จ
400 Bad Request
: อาร์กิวเมนต์ไม่ถูกต้อง (เพย์โหลดคําขอไม่ถูกต้อง)
403 Forbidden
: ปฏิเสธสิทธิ์ (เช่น คีย์ API ไม่ถูกต้อง)
429 Resource Exhausted
: ถึงขีดจํากัดโควต้าทรัพยากรหรือถึงขีดจํากัดแล้ว
500 Internal Server Error
: ข้อผิดพลาดภายในเซิร์ฟเวอร์ (ลองส่งคําขออีกครั้ง)
503 Service Unavailable
: ไม่พร้อมใช้งาน
504 Gateway Timeout
: เกินกําหนดเวลาแล้ว (ลองส่งคําขออีกครั้ง)
หมายเหตุ: ไคลเอ็นต์ที่ได้รับการตอบสนอง HTTP ที่ไม่สําเร็จ (ซึ่งก็คือรหัสสถานะ HTTP ที่ไม่ใช่ 200 OK
) จะต้องป้อนโหมดย้อนกลับ
สาเหตุที่เป็นไปได้ในการได้รับรหัสสถานะ 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"]]