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

# Error constants

Error code constants for framework operations.

## Topics

### Error codes

Error code constants for framework operations.

[`static var unknown: AVKitError.Code`](/documentation/AVKit/AVKitError-swift.struct/unknown)

An unknown error.

[`static var contentRatingUnknown: AVKitError.Code`](/documentation/AVKit/AVKitError-swift.struct/contentRatingUnknown)

The media content rating is missing or unrecognized.

[`static var contentDisallowedByPasscode: AVKitError.Code`](/documentation/AVKit/AVKitError-swift.struct/contentDisallowedByPasscode)

A restriction disallows access to this content, but the user can override the restriction by entering the device passcode.

[`static var contentDisallowedByProfile: AVKitError.Code`](/documentation/AVKit/AVKitError-swift.struct/contentDisallowedByProfile)

An installed profile restricts access to this content.

[`static var pictureInPictureStartFailed: AVKitError.Code`](/documentation/AVKit/AVKitError-swift.struct/pictureInPictureStartFailed)

The system failed to start Picture in Picture.



---

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)