קודי מצב 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
:
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]