Here is a list of CloudKit error codes ordered ascendingly with clickable links to their official documentation.
-
internalError (1)
- A nonrecoverable error that CloudKit encounters.
- Apple Documentation
-
networkUnavailable (3)
- An error that occurs when the network is unavailable.
- Apple Documentation
-
networkFailure (4)
- An error that occurs when a network is available, but CloudKit is inaccessible.
- Apple Documentation
-
badContainer (5)
- An error that occurs when you use an unknown or unauthorized container.
- Apple Documentation
-
serviceUnavailable (6)
- An error that occurs when CloudKit is unavailable.
- Apple Documentation
-
requestRateLimited (7)
- An error that occurs when CloudKit rate-limits requests.
- Apple Documentation
-
missingEntitlement (8)
- An error that occurs when the app is missing a required entitlement.
- Apple Documentation
-
notAuthenticated (9)
- An error that occurs when the user is unauthenticated.
- Apple Documentation
-
permissionFailure (10)
- An error that occurs when the user doesn’t have permission to save or fetch data.
- Apple Documentation
-
unknownItem (11)
- An error that occurs when the specified record doesn’t exist.
- Apple Documentation
-
invalidArguments (12)
- An error that occurs when the request contains invalid information.
- Apple Documentation
-
resultsTruncated (13)
- An error that occurs when CloudKit truncates a query’s results. (Deprecated)
- Apple Documentation
-
serverRecordChanged (14)
- An error that occurs when CloudKit rejects a record because the server’s version is different.
- Apple Documentation
-
serverRejectedRequest (15)
- An error that occurs when CloudKit rejects the request.
- Apple Documentation
-
assetFileNotFound (16)
- An error that occurs when the system can’t find the specified asset.
- Apple Documentation
-
assetFileModified (17)
- An error that occurs when the system modifies an asset while saving it.
- Apple Documentation
-
incompatibleVersion (18)
- An error that occurs when the current app version is older than the oldest allowed version.
- Apple Documentation
-
constraintViolation (19)
- An error that occurs when the server rejects the request because of a unique constraint violation.
- Apple Documentation
-
operationCancelled (20)
- An error that occurs when an operation cancels.
- Apple Documentation
-
changeTokenExpired (21)
- An error that occurs when the change token expires.
- Apple Documentation
-
batchRequestFailed (22)
- An error that occurs when the system rejects the entire batch of changes.
- Apple Documentation
-
zoneBusy (23)
- An error that occurs when the server is too busy to handle the record zone operation.
- Apple Documentation
-
badDatabase (24)
- An error that occurs when the operation can’t complete for the specified database.
- Apple Documentation
-
zoneNotFound (26)
- An error that occurs when the specified record zone doesn’t exist.
- Apple Documentation
-
limitExceeded (27)
- An error that occurs when a request’s size exceeds the limit.
- Apple Documentation
-
userDeletedZone (28)
- An error that occurs when the user deletes a record zone using the Settings app.
- Apple Documentation
-
tooManyParticipants (29)
- An error that occurs when a share has too many participants.
- Apple Documentation
-
alreadyShared (30)
- An error that occurs when CloudKit attempts to share a record with an existing share.
- Apple Documentation
-
referenceViolation (31)
- An error that occurs when CloudKit can’t find the target of a reference.
- Apple Documentation
-
managedAccountRestricted (32)
- An error that occurs when CloudKit rejects a request due to a managed-account restriction.
- Apple Documentation
-
participantMayNeedVerification (33)
- An error that occurs when the user isn’t a participant of the share.
- Apple Documentation
-
serverResponseLost (34)
- An error that occurs when CloudKit is unable to maintain the network connection and provide a response.
- Apple Documentation
-
assetNotAvailable (35)
- An error that occurs when the system can’t access the specified asset.
- Apple Documentation
-
accountTemporarilyUnavailable (36)
- An error that occurs when the user’s iCloud account is temporarily unavailable.
- Apple Documentation