<!--
{
  "documentType" : "article",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/error-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error constants"
}
-->

# Error constants

Error code constants for framework operations.

## Topics

### Error code constants

[`static var cancelled: MPError.Code`](/documentation/MediaPlayer/MPError/cancelled)

The system cancels the requested operation before it completes.

[`static var cloudServiceCapabilityMissing: MPError.Code`](/documentation/MediaPlayer/MPError/cloudServiceCapabilityMissing)

The operation can’t complete because iCloud services aren’t in an enabled state.

[`static var unknown: MPError.Code`](/documentation/MediaPlayer/MPError/unknown)

The requested operation can’t complete due to an unknown error.

[`static var networkConnectionFailed: MPError.Code`](/documentation/MediaPlayer/MPError/networkConnectionFailed)

The operation fails because the device can’t connect to the network.

[`static var notFound: MPError.Code`](/documentation/MediaPlayer/MPError/notFound)

The operation fails because the system can’t find the requested identifier in the current storefront.

[`static var notSupported: MPError.Code`](/documentation/MediaPlayer/MPError/notSupported)

The requested operation fails because the system doesn’t support it.

[`static var permissionDenied: MPError.Code`](/documentation/MediaPlayer/MPError/permissionDenied)

The operation can’t complete because the user doesn’t have permission for the request.

[`static var requestTimedOut: MPError.Code`](/documentation/MediaPlayer/MPError/requestTimedOut)

The requested operation times out.



---

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)