<!--
{
  "availability" : [
    "iOS: 9.3.0 -",
    "iPadOS: 9.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.2 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:@E@MPErrorCode"
  },
  "title" : "MPError.Code"
}
-->

# MPError.Code

An enumeration that represents error codes for framework operations.

```
enum Code
```

## Topics

### Error codes

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

An error that indicates the system canceled the requested operation before it completed.

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

An error that indicates the operation can’t complete because iCloud services aren’t enabled.

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

An error that indicates the operation failed because the device can’t connect to the network.

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

An error that indicates the operation failed because the system can’t find the requested identifier in the current storefront.

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

An error that indicates the requested operation failed because the system doesn’t support it.

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

An error that indicates the operation can’t complete because the user doesn’t have permission to execute the operation.

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

An error that indicates the requested operation timed out.

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

An error that indicates the requested operation can’t complete due to an unknown error.



---

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)