<!--
{
  "availability" : [
    "iOS: 10.0.0 - 12.0.0",
    "iPadOS: 10.0.0 - 12.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.12.0 - 10.14.0",
    "tvOS: 10.0.0 - 12.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameSessionError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:@E@GKGameSessionErrorCode"
  },
  "title" : "GKGameSessionError.Code"
}
-->

# GKGameSessionError.Code

Error codes for the game session domain.

```
enum Code
```

## Topics

### Enumeration Cases

[`GKGameSessionError.Code.unknown`](/documentation/GameKit/GKGameSessionError/Code/unknown)

The requested operation could not be completed due to an unknown error.

[`GKGameSessionError.Code.notAuthenticated`](/documentation/GameKit/GKGameSessionError/Code/notAuthenticated)

The requested operation could not be completed because you are not signed in to iCloud.

[`GKGameSessionError.Code.sessionConflict`](/documentation/GameKit/GKGameSessionError/Code/sessionConflict)

The requested operation could not be completed because the session has been updated on the server, causing a conflict.

[`GKGameSessionError.Code.sessionNotShared`](/documentation/GameKit/GKGameSessionError/Code/sessionNotShared)

The requested operation could not be completed because this session has not been shared with other players.

[`GKGameSessionError.Code.connectionCancelledByUser`](/documentation/GameKit/GKGameSessionError/Code/connectionCancelledByUser)

The requested operation could not be completed because the connection to the session was cancelled.

[`GKGameSessionError.Code.connectionFailed`](/documentation/GameKit/GKGameSessionError/Code/connectionFailed)

The requested operation could not be completed because the session could not find other players to connect to.

[`GKGameSessionError.Code.sessionHasMaxConnectedPlayers`](/documentation/GameKit/GKGameSessionError/Code/sessionHasMaxConnectedPlayers)

The requested operation could not be completed because the session has reached the maximum number of connected players.

[`GKGameSessionError.Code.sendDataNotConnected`](/documentation/GameKit/GKGameSessionError/Code/sendDataNotConnected)

The requested operation could not be completed because you are not connected to the session.

[`GKGameSessionError.Code.sendDataNoRecipients`](/documentation/GameKit/GKGameSessionError/Code/sendDataNoRecipients)

The requested operation could not be completed because there are no recipients connected to session.

[`GKGameSessionError.Code.sendDataNotReachable`](/documentation/GameKit/GKGameSessionError/Code/sendDataNotReachable)

The requested operation could not be completed because one or more players is not reachable.

[`GKGameSessionError.Code.sendRateLimitReached`](/documentation/GameKit/GKGameSessionError/Code/sendRateLimitReached)

The requested operation could not be completed because you have reached the limits for save data request.

[`GKGameSessionError.Code.badContainer`](/documentation/GameKit/GKGameSessionError/Code/badContainer)

The requested operation could not be completed because the iCloud container is invalid.

[`GKGameSessionError.Code.cloudQuotaExceeded`](/documentation/GameKit/GKGameSessionError/Code/cloudQuotaExceeded)

The requested operation could not be completed because the user’s iCloud quota would be exceeded.

[`GKGameSessionError.Code.networkFailure`](/documentation/GameKit/GKGameSessionError/Code/networkFailure)

The requested operation could not be completed due to an error communicating with the server.

[`GKGameSessionError.Code.cloudDriveDisabled`](/documentation/GameKit/GKGameSessionError/Code/cloudDriveDisabled)

The requested operation could not be completed because iCloud Drive has been disabled for the application.

[`GKGameSessionError.Code.invalidSession`](/documentation/GameKit/GKGameSessionError/Code/invalidSession)

The requested operation could not be completed because the Game Session does not exist or the player is not part of the game session.



---

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)