<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEVPNConnectionError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:@E@NEVPNConnectionError"
  },
  "title" : "NEVPNConnectionError"
}
-->

# NEVPNConnectionError

Error codes specific to VPN connections.

```
enum NEVPNConnectionError
```

## Topics

### General error codes

[`NEVPNConnectionErrorOverslept`](/documentation/NetworkExtension/NEVPNConnectionError/overslept)

An error code that indicates the system slept for an extended period of time, causing the VPN connection to terminate.

[`NEVPNConnectionErrorNoNetworkAvailable`](/documentation/NetworkExtension/NEVPNConnectionError/noNetworkAvailable)

An error code that indicates the VPN connection failed because the system isn’t connected to a network.

[`NEVPNConnectionErrorUnrecoverableNetworkChange`](/documentation/NetworkExtension/NEVPNConnectionError/unrecoverableNetworkChange)

An error code that indicates network conditions changed such that the VPN connection needed to terminate.

[`NEVPNConnectionErrorConfigurationFailed`](/documentation/NetworkExtension/NEVPNConnectionError/configurationFailed)

An error code that indicates the VPN connection failed because the configuration is invalid.

[`NEVPNConnectionErrorAuthenticationFailed`](/documentation/NetworkExtension/NEVPNConnectionError/authenticationFailed)

An error code that indicates the VPN connection failed because the VPN server rejected the user credentials.

[`NEVPNConnectionErrorConfigurationNotFound`](/documentation/NetworkExtension/NEVPNConnectionError/configurationNotFound)

An error code that indicates the VPN connection failed because the system couldn’t find a configuration.

[`NEVPNConnectionErrorNegotiationFailed`](/documentation/NetworkExtension/NEVPNConnectionError/negotiationFailed)

An error code that indicates the VPN connection failed because the negotiation failed.

### VPN server error codes

[`NEVPNConnectionErrorServerAddressResolutionFailed`](/documentation/NetworkExtension/NEVPNConnectionError/serverAddressResolutionFailed)

An error code that indicates the VPN connection failed because the system couldn’t determine the VPN server address.

[`NEVPNConnectionErrorServerNotResponding`](/documentation/NetworkExtension/NEVPNConnectionError/serverNotResponding)

An error code that indicates the VPN connection failed because the VPN server isn’t responding.

[`NEVPNConnectionErrorServerDead`](/documentation/NetworkExtension/NEVPNConnectionError/serverDead)

An error code that indicates the VPN connection failed because the VPN server has stopped responding.

[`NEVPNConnectionErrorServerDisconnected`](/documentation/NetworkExtension/NEVPNConnectionError/serverDisconnected)

An error code that indicates the VPN connection failed because the VPN server terminated the connection.

### Plugin error codes

[`NEVPNConnectionErrorPluginFailed`](/documentation/NetworkExtension/NEVPNConnectionError/pluginFailed)

An error code that indicates the VPN plugin failed unexpectedly.

[`NEVPNConnectionErrorPluginDisabled`](/documentation/NetworkExtension/NEVPNConnectionError/pluginDisabled)

An error code that indicates the VPN plugin isn’t available or needs an update.

### Client certificate error codes

[`NEVPNConnectionErrorClientCertificateInvalid`](/documentation/NetworkExtension/NEVPNConnectionError/clientCertificateInvalid)

An error code that indicates the client certfiicate is invalid.

[`NEVPNConnectionErrorClientCertificateNotYetValid`](/documentation/NetworkExtension/NEVPNConnectionError/clientCertificateNotYetValid)

An error code that indicates the client certfiicate won’t be valid until some time in the future.

[`NEVPNConnectionErrorClientCertificateExpired`](/documentation/NetworkExtension/NEVPNConnectionError/clientCertificateExpired)

An error code that indicates the client certfiicate’s validity period has passed.

### Server certificate error codes

[`NEVPNConnectionErrorServerCertificateInvalid`](/documentation/NetworkExtension/NEVPNConnectionError/serverCertificateInvalid)

An error code that indicates the server certfiicate is invalid.

[`NEVPNConnectionErrorServerCertificateNotYetValid`](/documentation/NetworkExtension/NEVPNConnectionError/serverCertificateNotYetValid)

An error code that indicates the server certfiicate won’t be valid until some time in the future.

[`NEVPNConnectionErrorServerCertificateExpired`](/documentation/NetworkExtension/NEVPNConnectionError/serverCertificateExpired)

An error code that indicates the server certfiicate’s validity period has passed.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)