<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:@E@NSFileProviderErrorCode"
  },
  "title" : "NSFileProviderError.Code"
}
-->

# NSFileProviderError.Code

The error codes for the File Provider extension.

```
enum Code
```

## Topics

### Error codes

[`NSFileProviderErrorFilenameCollision`](/documentation/FileProvider/NSFileProviderError/Code/filenameCollision)

An error indicating that an item with the same name already exists in the same directory.

[`NSFileProviderErrorInsufficientQuota`](/documentation/FileProvider/NSFileProviderError/Code/insufficientQuota)

An error indicating that the File Provider extension can’t upload the item because it would push the account over its quota.

[`NSFileProviderErrorNoSuchItem`](/documentation/FileProvider/NSFileProviderError/Code/noSuchItem)

An error indicating that the specified item doesn’t exist.

[`NSFileProviderErrorNotAuthenticated`](/documentation/FileProvider/NSFileProviderError/Code/notAuthenticated)

An error indicating that you can’t verify the user’s credentials.

[`NSFileProviderErrorServerUnreachable`](/documentation/FileProvider/NSFileProviderError/Code/serverUnreachable)

An error indicating that the File Provider extension can’t reach the remote server.

[`NSFileProviderErrorSyncAnchorExpired`](/documentation/FileProvider/NSFileProviderError/Code/syncAnchorExpired)

An error indicating that the sync anchor is too old, and that the system must restart the sync operation from the beginning.

[`pageExpired`](/documentation/FileProvider/NSFileProviderError/Code/pageExpired)

An error indicating that the page is too old, and that the system must restart the enumeration operation from the beginning.

[`NSFileProviderErrorDirectoryNotEmpty`](/documentation/FileProvider/NSFileProviderError/Code/directoryNotEmpty)

An error indicating an attempt to nonrecursively delete a directory that isn’t empty.

[`NSFileProviderErrorProviderNotFound`](/documentation/FileProvider/NSFileProviderError/Code/providerNotFound)

An error indicating that the File Provider manager can’t find the specified provider.

[`NSFileProviderErrorProviderTranslocated`](/documentation/FileProvider/NSFileProviderError/Code/providerTranslocated)

An error indicating the File Provider extension is in a disabled state due to Gatekeeper’s restrictions for apps from outside the App Store.

[`NSFileProviderErrorOlderExtensionVersionRunning`](/documentation/FileProvider/NSFileProviderError/Code/olderExtensionVersionRunning)

An error indicating that the registered provider in the system is an older version than the one the app uses.

[`NSFileProviderErrorNewerExtensionVersionFound`](/documentation/FileProvider/NSFileProviderError/Code/newerExtensionVersionFound)

An error indicating that the registered provider in the system is a newer version than the one the app uses.

[`NSFileProviderErrorNonEvictable`](/documentation/FileProvider/NSFileProviderError/Code/nonEvictable)

An error indicating that the File Provider extension can’t evict an item.

[`NSFileProviderErrorNonEvictableChildren`](/documentation/FileProvider/NSFileProviderError/Code/nonEvictableChildren)

An error indicating that the File Provider extension can’t evict a directory because it contains nonevictable items.

[`NSFileProviderErrorUnsyncedEdits`](/documentation/FileProvider/NSFileProviderError/Code/unsyncedEdits)

An error indicating that the item contains unsynced changes.

[`NSFileProviderErrorCannotSynchronize`](/documentation/FileProvider/NSFileProviderError/Code/cannotSynchronize)

An error indicating a failed sync attempt.

[`NSFileProviderErrorDeletionRejected`](/documentation/FileProvider/NSFileProviderError/Code/deletionRejected)

An error indicating a failed deletion action.

[`NSFileProviderErrorVersionNoLongerAvailable`](/documentation/FileProvider/NSFileProviderError/Code/versionNoLongerAvailable)

An error indicating that the specified version is no longer available.

[`NSFileProviderErrorDomainDisabled`](/documentation/FileProvider/NSFileProviderError/Code/domainDisabled)

[`NSFileProviderErrorExcludedFromSync`](/documentation/FileProvider/NSFileProviderError/Code/excludedFromSync)

[`NSFileProviderErrorApplicationExtensionNotFound`](/documentation/FileProvider/NSFileProviderError/Code/applicationExtensionNotFound)

An error indicating that there isn’t an app extension within the app bundle.

[`NSFileProviderErrorProviderDomainNotFound`](/documentation/FileProvider/NSFileProviderError/Code/providerDomainNotFound)

An error indicating that there isn’t a registered domain for the corresponding identifier.

[`NSFileProviderErrorProviderDomainTemporarilyUnavailable`](/documentation/FileProvider/NSFileProviderError/Code/providerDomainTemporarilyUnavailable)

An error indicating that the system is unable to service requests for the domain temporarily, and you can try again later.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)