ErrorResponse
Certain endpoints return this envelope, which wraps an Error object, when a request fails.
Declaration
object ErrorResponseProperties
| Name | Type | Description |
|---|---|---|
error | Error | The error object containing details about the failure. See Error. |
Discussion
The ErrorResponse object is a response envelope that wraps an Error object. Certain endpoints return it when a request fails, providing the full Error structure including code, message, and details.
A 429 status indicates the caller has exceeded its request quota. See Applying Rate Limits for the rate-limit headers and a sample backoff implementation to use before retrying.
Example
{
"error": {
"code": "INVALID_ARGUMENT",
"message": "The request could not be processed because of missing or invalid fields.",
"details": [
{
"code": "MISSING_REQUIRED_FIELD",
"message": "The field 'name' is required for campaign AwayFinder Summer Launch."
}
]
}
}