Kody stanu HTTP
Kody stanu HTTP, które serwer może wygenerować w odpowiedzi na żądanie HTTP POST
lub HTTP GET
:
200 OK
: żądanie zostało przetworzone.
400 Bad Request
: nieprawidłowy argument (nieprawidłowy ładunek żądania).
403 Forbidden
: odmowa dostępu (np. nieprawidłowy klucz interfejsu API).
429 Resource Exhausted
: przekroczono limit zasobów lub osiągnięto ograniczenie liczby żądań.
500 Internal Server Error
: wewnętrzny błąd serwera (spróbuj ponownie wykonać żądanie).
503 Service Unavailable
: niedostępna.
504 Gateway Timeout
: ostateczny termin (spróbuj ponownie).
Uwaga: klienci, którzy otrzymają nieudaną odpowiedź HTTP (czyli kod stanu HTTP inny niż 200 OK
), muszą włączyć tryb wycofywania.
Możliwe przyczyny otrzymania kodu stanu HTTP 400 Bad Request
:
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-02-27 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]