Structured error replies
Stay organized with collections
Save and categorize content based on your preferences.
To allow better messages and logs, the Key Access Control List Service (KACLS)
operation failures return a structured JSON reply in the body.
The standard HTTP status codes are used.
| JSON representation |
{
"code": int,
"message": string,
"details": string
}
|
| Fields |
code |
int
Standard HTTP status code
|
message |
string (UTF-8)
A human-readable error message.
|
details |
string (UTF-8)
More details about the error, such as a stack trace.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-27 UTC.
[null,null,["Last updated 2026-01-27 UTC."],[],["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"]]