<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:@E@CKErrorCode"
  },
  "title" : "CKError.Code"
}
-->

# CKError.Code

The error codes that CloudKit returns.

```
enum Code
```

## Topics

### Error Codes

[`CKErrorAccountTemporarilyUnavailable`](/documentation/CloudKit/CKError/Code/accountTemporarilyUnavailable)

An error that occurs when the user’s iCloud account is temporarily unavailable.

[`CKErrorAlreadyShared`](/documentation/CloudKit/CKError/Code/alreadyShared)

An error that occurs when CloudKit attempts to share a record with an existing share.

[`CKErrorAssetFileModified`](/documentation/CloudKit/CKError/Code/assetFileModified)

An error that occurs when the system modifies an asset while saving it.

[`CKErrorAssetFileNotFound`](/documentation/CloudKit/CKError/Code/assetFileNotFound)

An error that occurs when the system can’t find the specified asset.

[`CKErrorAssetNotAvailable`](/documentation/CloudKit/CKError/Code/assetNotAvailable)

An error that occurs when the system can’t access the specified asset.

[`CKErrorBadContainer`](/documentation/CloudKit/CKError/Code/badContainer)

An error that occurs when you use an unknown or unauthorized container.

[`CKErrorBadDatabase`](/documentation/CloudKit/CKError/Code/badDatabase)

An error that occurs when the operation can’t complete for the specified database.

[`CKErrorBatchRequestFailed`](/documentation/CloudKit/CKError/Code/batchRequestFailed)

An error that occurs when the system rejects the entire batch of changes.

[`CKErrorChangeTokenExpired`](/documentation/CloudKit/CKError/Code/changeTokenExpired)

An error that occurs when the change token expires.

[`CKErrorConstraintViolation`](/documentation/CloudKit/CKError/Code/constraintViolation)

An error that occurs when the server rejects the request because of a unique constraint violation.

[`CKErrorIncompatibleVersion`](/documentation/CloudKit/CKError/Code/incompatibleVersion)

An error that occurs when the current app version is older than the oldest allowed version.

[`CKErrorInternalError`](/documentation/CloudKit/CKError/Code/internalError)

A nonrecoverable error that CloudKit encounters.

[`CKErrorInvalidArguments`](/documentation/CloudKit/CKError/Code/invalidArguments)

An error that occurs when the request contains invalid information.

[`CKErrorLimitExceeded`](/documentation/CloudKit/CKError/Code/limitExceeded)

An error that occurs when a request’s size exceeds the limit.

[`CKErrorManagedAccountRestricted`](/documentation/CloudKit/CKError/Code/managedAccountRestricted)

An error that occurs when CloudKit rejects a request due to a managed-account restriction.

[`CKErrorMissingEntitlement`](/documentation/CloudKit/CKError/Code/missingEntitlement)

An error that occurs when the app is missing a required entitlement.

[`CKErrorNetworkFailure`](/documentation/CloudKit/CKError/Code/networkFailure)

An error that occurs when a network is available, but CloudKit is inaccessible.

[`CKErrorNetworkUnavailable`](/documentation/CloudKit/CKError/Code/networkUnavailable)

An error that occurs when the network is unavailable.

[`CKErrorNotAuthenticated`](/documentation/CloudKit/CKError/Code/notAuthenticated)

An error that occurs when CloudKit cannot authenticate the user.

[`CKErrorOperationCancelled`](/documentation/CloudKit/CKError/Code/operationCancelled)

An error that occurs when an operation cancels.

[`CKErrorPartialFailure`](/documentation/CloudKit/CKError/Code/partialFailure)

An error that occurs when an operation completes with partial failures.

[`CKErrorParticipantMayNeedVerification`](/documentation/CloudKit/CKError/Code/participantMayNeedVerification)

An error that occurs when the user isn’t a participant of the share.

[`CKErrorPermissionFailure`](/documentation/CloudKit/CKError/Code/permissionFailure)

An error that occurs when the user doesn’t have permission to save or fetch data.

[`CKErrorQuotaExceeded`](/documentation/CloudKit/CKError/Code/quotaExceeded)

An error that occurs when saving a record exceeds the user’s storage quota.

[`CKErrorReferenceViolation`](/documentation/CloudKit/CKError/Code/referenceViolation)

An error that occurs when CloudKit can’t find the target of a reference.

[`CKErrorRequestRateLimited`](/documentation/CloudKit/CKError/Code/requestRateLimited)

An error that occurs when CloudKit rate-limits requests.

[`CKErrorServerRecordChanged`](/documentation/CloudKit/CKError/Code/serverRecordChanged)

An error that occurs when CloudKit rejects a record because the server’s version is different.

[`CKErrorServerRejectedRequest`](/documentation/CloudKit/CKError/Code/serverRejectedRequest)

An error that occurs when CloudKit rejects the request.

[`CKErrorServerResponseLost`](/documentation/CloudKit/CKError/Code/serverResponseLost)

An error that occurs when CloudKit is unable to maintain the network connection and provide a response.

[`CKErrorServiceUnavailable`](/documentation/CloudKit/CKError/Code/serviceUnavailable)

An error that occurs when CloudKit is unavailable.

[`CKErrorTooManyParticipants`](/documentation/CloudKit/CKError/Code/tooManyParticipants)

An error that occurs when a share has too many participants.

[`CKErrorUnknownItem`](/documentation/CloudKit/CKError/Code/unknownItem)

An error that occurs when the specified record doesn’t exist.

[`CKErrorUserDeletedZone`](/documentation/CloudKit/CKError/Code/userDeletedZone)

An error that occurs when the user deletes a record zone using the Settings app.

[`CKErrorZoneBusy`](/documentation/CloudKit/CKError/Code/zoneBusy)

An error that occurs when the server is too busy to handle the record zone operation.

[`CKErrorZoneNotFound`](/documentation/CloudKit/CKError/Code/zoneNotFound)

An error that occurs when the specified record zone doesn’t exist.

[`CKErrorResultsTruncated`](/documentation/CloudKit/CKError/Code/resultsTruncated)

An error that occurs when CloudKit truncates a query’s results.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)