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-26 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-26 UTC."],[[["The error response includes a canonical error code, HTTP status code, and a message explaining the error."],["It may also contain additional details in a structured format, with a URI identifying the type of each detail."]]],["The provided JSON represents an error response with four key fields: `code`, `httpStatusCode`, `message`, and `details`. `code` specifies the canonical error type, `httpStatusCode` provides the HTTP status, and `message` contains the error text. `details` offers extra error-related data, including a type identifier (`@type`) and other custom fields. The `code` is defined by an enum. The `details` field contains a variable array of additional objects with a type specified by a URI.\n"]]