<!--
{
  "availability" : [
    "Apple Ads Platform API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Apple-Ads-Platform-API",
  "identifier" : "/documentation/Apple-Ads-Platform-API/ErrorResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple Ads Platform API"
    ],
    "preciseIdentifier" : "data:apple-ads-platform-api:ErrorResponse"
  },
  "title" : "ErrorResponse"
}
-->

# ErrorResponse

Certain endpoints return this envelope, which wraps an `Error` object, when a request fails.

```
object ErrorResponse
```

## 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](/documentation/Apple-Ads-Platform-API/rate-limits) for the rate-limit headers and a sample backoff implementation to use before retrying.

### Example

```json
{
  "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."
      }
    ]
  }
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)