ErrorResponseLog
Stay organized with collections
Save and categorize content based on your preferences.
The error response returned to the client.
JSON representation |
{
"code": enum (Code ),
"httpStatusCode": integer,
"message": string,
"details": [
{
"@type": string,
field1: ...,
...
}
]
} |
Fields |
code |
enum (Code )
The canonical code of the error.
|
httpStatusCode |
integer
The HTTP status code of the error response.
|
message |
string
The error message returned to the client.
|
details[] |
object
Additional information about the error, see https://cloud.google.com/apis/design/errors. An object containing fields of an arbitrary type. An additional field "@type" contains a URI identifying the type. Example: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
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 2025-02-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-25 UTC."],[[["The error response provides a structured JSON object containing details about the error encountered."],["It includes an error code, HTTP status code, a message explaining the error, and optional details for further information."],["The `details` field can contain arbitrary data with a type identifier for context."]]],["The response contains error information represented in JSON format. Key fields include `code`, an enumerated canonical error code; `httpStatusCode`, the HTTP status; and `message`, the error text. Additionally, `details` provides further information about the error in an object format, with `@type` field that indicates the type of the error. Each field has a specific format and meaning.\n"]]