Typ Status określa logiczny model błędów odpowiedni dla różnych środowisk programowania, w tym interfejsów API typu REST i RPC. Jest używany przez gRPC. Każdy komunikat Status zawiera 3 elementy danych: kod błędu, komunikat o błędzie i szczegóły błędu.
Więcej informacji na temat tego modelu błędów i sposobu jego działania znajdziesz w przewodniku API Design Guide (w języku angielskim).
Pola
code
int32
Kod stanu, który powinien być wartością wyliczeniową równą google.rpc.Code.
message
string
komunikat o błędzie widoczny dla dewelopera. Powinien być w języku angielskim;
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-07-30 UTC."],[[["The `Status` type defines a logical error model used by gRPC and REST APIs, containing an error code, message, and details."],["It includes fields for code (`int32`), message (`string`), and details (`Any`), providing comprehensive error information."],["Developers can learn more about this model and its usage in the API Design Guide."]]],[]]