<!--
{
  "availability" : [
    "iOS: 12.5.0 - 27.0.0",
    "iPadOS: 12.5.0 - 27.0.0",
    "macCatalyst: 12.5.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ExposureNotification",
  "identifier" : "/documentation/ExposureNotification/ENError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Exposure Notification"
    ],
    "preciseIdentifier" : "c:@E@ENErrorCode"
  },
  "title" : "ENError.Code"
}
-->

# ENError.Code

Error codes that the exposure notification framework issues.

```
enum Code
```

## Overview> Important:
> This enumeration is available in iOS 12.5, and in iOS 13.5 and later.

## Topics

### Error Codes

[`case apiMisuse`](/documentation/ExposureNotification/ENError/Code/apiMisuse)

The API use is incorrect.

[`case badFormat`](/documentation/ExposureNotification/ENError/Code/badFormat)

A file is formated incorrectly.

[`case badParameter`](/documentation/ExposureNotification/ENError/Code/badParameter)

The parameter is missing or incorrect.

[`case restricted`](/documentation/ExposureNotification/ENError/Code/restricted)

Exposure notification is disabled due to system policies.

[`case bluetoothOff`](/documentation/ExposureNotification/ENError/Code/bluetoothOff)

Bluetooth is turned off.

[`case insufficientMemory`](/documentation/ExposureNotification/ENError/Code/insufficientMemory)

The memory is insufficient to perform the operation.

[`case insufficientStorage`](/documentation/ExposureNotification/ENError/Code/insufficientStorage)

The storage is insufficient to enable notifications.

[`case `internal``](/documentation/ExposureNotification/ENError/Code/internal)

A bug in the internal notification framework.

[`case invalidated`](/documentation/ExposureNotification/ENError/Code/invalidated)

A call to invalidate before the operation completes normally.

[`case notAuthorized`](/documentation/ExposureNotification/ENError/Code/notAuthorized)

The user has denied access to the notification framework.

[`case notEnabled`](/documentation/ExposureNotification/ENError/Code/notEnabled)

Notification is not enabled.

[`case notEntitled`](/documentation/ExposureNotification/ENError/Code/notEntitled)

Process of calling is not entitled.

[`case rateLimited`](/documentation/ExposureNotification/ENError/Code/rateLimited)

API calls are too frequent.

[`case unknown`](/documentation/ExposureNotification/ENError/Code/unknown)

Failure has an unknown cause.

[`case unsupported`](/documentation/ExposureNotification/ENError/Code/unsupported)

Operation is not supported.

[`case dataInaccessible`](/documentation/ExposureNotification/ENError/Code/dataInaccessible)

The user must unlock the device before it can access data.

[`case travelStatusNotAvailable`](/documentation/ExposureNotification/ENError/Code/travelStatusNotAvailable)

The system can’t determine whether the user is traveling.

### Initializers

[`init?(rawValue: Int)`](/documentation/ExposureNotification/ENError/Code/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)