Structured error replies

To allow better messages and logs, the Key Access Control List Service (KACLS) operation failures returns 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 2024年11月14日 UTC.