<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "SiriKitCloudMedia",
  "identifier" : "/documentation/SiriKitCloudMedia/ContentFailure",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "SiriKit Cloud Media"
    ],
    "preciseIdentifier" : "data:sirikit_media_api:ContentFailure"
  },
  "title" : "ContentFailure"
}
-->

# ContentFailure

An object that describes why the client can’t play a specific piece of content.

```
object ContentFailure
```

## Discussion

The value of `errorCode` is one of the following:

|Code  |Description                                                                                                                                                                          |
|------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|`0`   |The client encountered an unexpected error.                                                                                                                                          |
|`1000`|The number of items in the queue segment exceeds the configured maximum. For more information, see ``doc://com.apple.sirikitcloudmedia/documentation/SiriKitCloudMedia/Constraints``.|
|`1001`|The client failed to play the specified item. For more information, see ``doc://com.apple.sirikitcloudmedia/documentation/SiriKitCloudMedia/UnderlyingError``.                       |
|`1002`|The client failed to obtain a content key for a protected item.                                                                                                                      |

If you receive a [`ContentFailure`](/documentation/SiriKitCloudMedia/ContentFailure) with an `errorCode` of `1002`, check the following:

- The configuration for your service’s certificate URL is correct. For more information, see [`ExtensionConfig.Media.Queues.ContentProtectionKey.Cks`](/documentation/SiriKitCloudMedia/ExtensionConfig/Media-data.dictionary/Queues-data.dictionary/ContentProtectionKey-data.dictionary/Cks-data.dictionary).
- The protected item has a valid `assetIdentifier`.
- Your service’s key server module (KSM) provides a valid content key context (CKC) for the protected item’s `assetIdentifier`. For more information, see [FairPlay Streaming Overview](https://developer.apple.com/streaming/fps/FairPlayStreamingOverview.pdf).

> Note:
> The client doesn’t send an error if your service provides an invalid content key for the specified `assetIdentifier`.

---

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)