Strukturierte Fehlerantworten
Der Key Access Control List Service (KACLS) ermöglicht bessere Nachrichten und Protokolle
Vorgangsfehler gibt eine strukturierte JSON-Antwort im Text zurück.
Es werden die standardmäßigen HTTP-Statuscodes verwendet.
JSON-Darstellung |
{
"code": int,
"message": string,
"details": string
}
|
Felder |
code |
int
Standard-HTTP-Statuscode
|
message |
string (UTF-8)
Eine für Menschen lesbare Fehlermeldung.
|
details |
string (UTF-8)
Weitere Details zum Fehler, z. B. ein Stacktrace.
|
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-08-22 (UTC)."],[[["KACLS operation failures now return structured JSON responses for improved debugging."],["These JSON responses include an HTTP status code, a human-readable message, and detailed error information."],["This structure facilitates easier integration with automated systems and provides developers with more context for troubleshooting."]]],["KACLS operation failures now return a structured JSON response in the body, using standard HTTP status codes. The JSON format includes three fields: `code` (an integer representing the HTTP status), `message` (a human-readable error string), and `details` (a string providing further information like a stack trace). This structured format improves the quality of error messages and logs.\n"]]