<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macOS: -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoSubscriberAccount",
  "identifier" : "/documentation/VideoSubscriberAccount/VSError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Video Subscriber Account"
    ],
    "preciseIdentifier" : "c:@E@VSErrorCode"
  },
  "title" : "VSError.Code"
}
-->

# VSError.Code

Error codes in the framework error domain.

```
enum Code
```

## Topics

### Error Codes

[`case accessNotGranted`](/documentation/VideoSubscriberAccount/VSError/Code/accessNotGranted)

The user hasn’t granted access to their subscription information.

[`case invalidVerificationToken`](/documentation/VideoSubscriberAccount/VSError/Code/invalidVerificationToken)

The user’s subscription provider rejected the verification token that the app sent with the request.

[`case providerRejected`](/documentation/VideoSubscriberAccount/VSError/Code/providerRejected)

The user’s subscription provider didn’t allow the request to proceed.

[`case rejected`](/documentation/VideoSubscriberAccount/VSError/Code/rejected)

The system rejected the request.

[`case serviceTemporarilyUnavailable`](/documentation/VideoSubscriberAccount/VSError/Code/serviceTemporarilyUnavailable)

The request failed due to a timeout or unreachable host, but a subsequent attempt might succeed.

[`case unsupported`](/documentation/VideoSubscriberAccount/VSError/Code/unsupported)

The provider doesn’t support the feature the user requested in the device’s current region.

[`case unsupportedProvider`](/documentation/VideoSubscriberAccount/VSError/Code/unsupportedProvider)

The system doesn’t support the user’s subscription provider.

[`case userCancelled`](/documentation/VideoSubscriberAccount/VSError/Code/userCancelled)

The user canceled the request.

### Initializers

[`init?(rawValue: Int)`](/documentation/VideoSubscriberAccount/VSError/Code/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

[`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)