Skip to content

Instantly share code, notes, and snippets.

@danielCarlosCE
Created December 14, 2024 11:15
Show Gist options
  • Save danielCarlosCE/a355b8f280ccae795b8a05449568f82f to your computer and use it in GitHub Desktop.
Save danielCarlosCE/a355b8f280ccae795b8a05449568f82f to your computer and use it in GitHub Desktop.
A list of CloudKit error codes ordered ascendingly with clickable links to their official documentation

CloudKit Error Codes Enum

Here is a list of CloudKit error codes ordered ascendingly with clickable links to their official documentation.

Error Codes and Documentation

  1. internalError (1)

  2. networkUnavailable (3)

  3. networkFailure (4)

    • An error that occurs when a network is available, but CloudKit is inaccessible.
    • Apple Documentation
  4. badContainer (5)

  5. serviceUnavailable (6)

  6. requestRateLimited (7)

  7. missingEntitlement (8)

  8. notAuthenticated (9)

  9. permissionFailure (10)

    • An error that occurs when the user doesn’t have permission to save or fetch data.
    • Apple Documentation
  10. unknownItem (11)

  11. invalidArguments (12)

  12. resultsTruncated (13)

    • An error that occurs when CloudKit truncates a query’s results. (Deprecated)
    • Apple Documentation
  13. serverRecordChanged (14)

    • An error that occurs when CloudKit rejects a record because the server’s version is different.
    • Apple Documentation
  14. serverRejectedRequest (15)

  15. assetFileNotFound (16)

  16. assetFileModified (17)

  17. incompatibleVersion (18)

    • An error that occurs when the current app version is older than the oldest allowed version.
    • Apple Documentation
  18. constraintViolation (19)

    • An error that occurs when the server rejects the request because of a unique constraint violation.
    • Apple Documentation
  19. operationCancelled (20)

  20. changeTokenExpired (21)

  21. batchRequestFailed (22)

    • An error that occurs when the system rejects the entire batch of changes.
    • Apple Documentation
  22. zoneBusy (23)

    • An error that occurs when the server is too busy to handle the record zone operation.
    • Apple Documentation
  23. badDatabase (24)

    • An error that occurs when the operation can’t complete for the specified database.
    • Apple Documentation
  24. zoneNotFound (26)

  25. limitExceeded (27)

  26. userDeletedZone (28)

    • An error that occurs when the user deletes a record zone using the Settings app.
    • Apple Documentation
  27. tooManyParticipants (29)

  28. alreadyShared (30)

    • An error that occurs when CloudKit attempts to share a record with an existing share.
    • Apple Documentation
  29. referenceViolation (31)

    • An error that occurs when CloudKit can’t find the target of a reference.
    • Apple Documentation
  30. managedAccountRestricted (32)

    • An error that occurs when CloudKit rejects a request due to a managed-account restriction.
    • Apple Documentation
  31. participantMayNeedVerification (33)

  32. serverResponseLost (34)

    • An error that occurs when CloudKit is unable to maintain the network connection and provide a response.
    • Apple Documentation
  33. assetNotAvailable (35)

  34. accountTemporarilyUnavailable (36)

    • An error that occurs when the user’s iCloud account is temporarily unavailable.
    • Apple Documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment