<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/icloud-error-codes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "iCloud Error Codes"
}
-->

# iCloud Error Codes

Error codes to expect when an iCloud-related error occurs.

## Discussion

These codes are associated with the [`ubiquitousItemDownloadingErrorKey`](/documentation/Foundation/URLResourceKey/ubiquitousItemDownloadingErrorKey) on an [`NSURL`](/documentation/Foundation/NSURL) object when an iCloud-related error occurs.

## Topics

### General iCloud File Errors

[`var NSUbiquitousFileErrorMinimum: Int`](/documentation/Foundation/NSUbiquitousFileErrorMinimum-swift.var)

The minimum error code value that represents an iCloud error.

[`var NSUbiquitousFileUnavailableError: Int`](/documentation/Foundation/NSUbiquitousFileUnavailableError-swift.var)

The item has not been uploaded to iCloud by another device yet.

[`var NSUbiquitousFileNotUploadedDueToQuotaError: Int`](/documentation/Foundation/NSUbiquitousFileNotUploadedDueToQuotaError-swift.var)

The item could not be uploaded to iCloud because it would make the account go over its quota.

[`var NSUbiquitousFileUbiquityServerNotAvailable: Int`](/documentation/Foundation/NSUbiquitousFileUbiquityServerNotAvailable-swift.var)

A failure to connect to the iCloud servers.

[`var NSUbiquitousFileErrorMaximum: Int`](/documentation/Foundation/NSUbiquitousFileErrorMaximum-swift.var)

The maximum error code value that represents an iCloud error.

[`NSUbiquitousFileErrorMinimum`](/documentation/Foundation/NSUbiquitousFileErrorMinimum-c.enum.case)

The minimum error code value that represents an iCloud error.

[`NSUbiquitousFileUnavailableError`](/documentation/Foundation/NSUbiquitousFileUnavailableError-c.enum.case)

The item has not been uploaded to iCloud by another device yet.

[`NSUbiquitousFileNotUploadedDueToQuotaError`](/documentation/Foundation/NSUbiquitousFileNotUploadedDueToQuotaError-c.enum.case)

The item could not be uploaded to iCloud because it would make the account go over its quota.

[`NSUbiquitousFileUbiquityServerNotAvailable`](/documentation/Foundation/NSUbiquitousFileUbiquityServerNotAvailable-c.enum.case)

A failure to connect to the iCloud servers.

[`NSUbiquitousFileErrorMaximum`](/documentation/Foundation/NSUbiquitousFileErrorMaximum-c.enum.case)

The maximum error code value that represents an iCloud error.

### iCloud Sharing Errors

[`var NSCloudSharingConflictError: Int`](/documentation/Foundation/NSCloudSharingConflictError-swift.var)

A conflict occurred during an attempt to save changes.

[`var NSCloudSharingErrorMaximum: Int`](/documentation/Foundation/NSCloudSharingErrorMaximum-swift.var)

The end of the range of error codes reserved for cloud-sharing errors.

[`var NSCloudSharingErrorMinimum: Int`](/documentation/Foundation/NSCloudSharingErrorMinimum-swift.var)

The start of the range of error codes reserved for cloud-sharing errors.

[`var NSCloudSharingNetworkFailureError: Int`](/documentation/Foundation/NSCloudSharingNetworkFailureError-swift.var)

Sharing failed due to a network failure.

[`var NSCloudSharingNoPermissionError: Int`](/documentation/Foundation/NSCloudSharingNoPermissionError-swift.var)

The current user doesn’t have permission to perform the requested actions.

[`var NSCloudSharingOtherError: Int`](/documentation/Foundation/NSCloudSharingOtherError-swift.var)

An otherwise unspecified cloud-sharing error occurred.

[`var NSCloudSharingQuotaExceededError: Int`](/documentation/Foundation/NSCloudSharingQuotaExceededError-swift.var)

The user doesn’t have enough storage space available to share the requested items.

[`var NSCloudSharingTooManyParticipantsError: Int`](/documentation/Foundation/NSCloudSharingTooManyParticipantsError-swift.var)

Additional participants couldn’t be added to the share, because the limit was reached.

[`NSCloudSharingConflictError`](/documentation/Foundation/NSCloudSharingConflictError-c.enum.case)

A conflict occurred during an attempt to save changes.

[`NSCloudSharingErrorMaximum`](/documentation/Foundation/NSCloudSharingErrorMaximum-c.enum.case)

The end of the range of error codes reserved for cloud-sharing errors.

[`NSCloudSharingErrorMinimum`](/documentation/Foundation/NSCloudSharingErrorMinimum-c.enum.case)

The start of the range of error codes reserved for cloud-sharing errors.

[`NSCloudSharingNetworkFailureError`](/documentation/Foundation/NSCloudSharingNetworkFailureError-c.enum.case)

Sharing failed due to a network failure.

[`NSCloudSharingNoPermissionError`](/documentation/Foundation/NSCloudSharingNoPermissionError-c.enum.case)

The current user doesn’t have permission to perform the requested actions.

[`NSCloudSharingOtherError`](/documentation/Foundation/NSCloudSharingOtherError-c.enum.case)

An otherwise unspecified cloud-sharing error occurred.

[`NSCloudSharingQuotaExceededError`](/documentation/Foundation/NSCloudSharingQuotaExceededError-c.enum.case)

The user doesn’t have enough storage space available to share the requested items.

[`NSCloudSharingTooManyParticipantsError`](/documentation/Foundation/NSCloudSharingTooManyParticipantsError-c.enum.case)

Additional participants couldn’t be added to the share, because the limit was reached.



---

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)