GamesStatusCodes | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Constants | Methods | Inherited Methods | [Expand All]
public final class

# GamesStatusCodes

extends Object

java.lang.Object
↳ | com.google.android.gms.games.GamesStatusCodes

## Class Overview

Status codes for Games results.

## Summary

Constants
int | STATUS_ACHIEVEMENT_NOT_INCREMENTAL | Indicates that the call to increment achievement failed since the achievement is not an incremental achievement.
int | STATUS_ACHIEVEMENT_UNKNOWN | Could not find the achievement, so the operation to update the achievement failed.
int | STATUS_ACHIEVEMENT_UNLOCKED | Indicates that the incremental achievement was also unlocked when the call was made to increment the achievement.
int | STATUS_ACHIEVEMENT_UNLOCK_FAILURE | An incremental achievement cannot be unlocked directly, so the call to unlock achievement failed.
int | STATUS_APP_MISCONFIGURED | The developer has misconfigured their application in some way.
int | STATUS_CLIENT_RECONNECT_REQUIRED | The GoogleApiClient is in an inconsistent state and must reconnect to the service to resolve the issue.
int | STATUS_GAME_NOT_FOUND | The specified game ID was not recognized by the server.
int | STATUS_INTERNAL_ERROR | An unspecified error occurred; no more specific information is available.
int | STATUS_INTERRUPTED | Was interrupted while waiting for the result.
int | STATUS_INVALID_REAL_TIME_ROOM_ID | Constant indicating that the real-time room ID provided to the operation was not valid, or does not correspond to the currently active real-time room.
int | STATUS_LICENSE_CHECK_FAILED | The game is not licensed to the user.
int | STATUS_MATCH_ERROR_ALREADY_REMATCHED | The specified match has already had a rematch created.
int | STATUS_MATCH_ERROR_INACTIVE_MATCH | The match is not currently active.
int | STATUS_MATCH_ERROR_INVALID_MATCH_RESULTS | The match results provided in this API call are invalid.
int | STATUS_MATCH_ERROR_INVALID_MATCH_STATE | The match is not in the correct state to perform the specified action.
int | STATUS_MATCH_ERROR_INVALID_PARTICIPANT_STATE | One or more participants in this match are not in valid states.
int | STATUS_MATCH_ERROR_LOCALLY_MODIFIED | The specified match has already been modified locally.
int | STATUS_MATCH_ERROR_OUT_OF_DATE_VERSION | The match data is out of date.
int | STATUS_MATCH_NOT_FOUND | The specified match cannot be found.
int | STATUS_MILESTONE_CLAIMED_PREVIOUSLY | This quest milestone was previously claimed (on this device or another).
int | STATUS_MILESTONE_CLAIM_FAILED | This quest milestone is not available for claiming.
int | STATUS_MULTIPLAYER_DISABLED | This game does not support multiplayer.
int | STATUS_MULTIPLAYER_ERROR_CREATION_NOT_ALLOWED | The user is not allowed to create a new multiplayer game at this time.
int | STATUS_MULTIPLAYER_ERROR_INVALID_MULTIPLAYER_TYPE | The match is not the right type to perform this action on.
int | STATUS_MULTIPLAYER_ERROR_INVALID_OPERATION | This multiplayer operation is not valid, and the server rejected it.
int | STATUS_MULTIPLAYER_ERROR_NOT_TRUSTED_TESTER | The user attempted to invite another user who was not authorized to see the game.
int | STATUS_NETWORK_ERROR_NO_DATA | A network error occurred while attempting to retrieve fresh data, and no data was available locally.
int | STATUS_NETWORK_ERROR_OPERATION_DEFERRED | A network error occurred while attempting to modify data, but the data was successfully modified locally and will be updated on the network the next time the device is able to sync.
int | STATUS_NETWORK_ERROR_OPERATION_FAILED | A network error occurred while attempting to perform an operation that requires network access.
int | STATUS_NETWORK_ERROR_STALE_DATA | A network error occurred while attempting to retrieve fresh data, but some locally cached data was available.
int | STATUS_OK | The operation was successful.
int | STATUS_OPERATION_IN_FLIGHT | Trying to start a join/create operation while another is already in flight.
int | STATUS_PARTICIPANT_NOT_CONNECTED | Constant indicating that the ID of the participant provided by the user is not currently connected to the client in the real-time room.
int | STATUS_QUEST_NOT_STARTED | This quest is not available yet and cannot be accepted.
int | STATUS_QUEST_NO_LONGER_AVAILABLE | This quest has expired or the developer has removed, and cannot be accepted.
int | STATUS_REAL_TIME_CONNECTION_FAILED | Failed to initialize the network connection for a real-time room.
int | STATUS_REAL_TIME_INACTIVE_ROOM | The room is not currently active.
int | STATUS_REAL_TIME_MESSAGE_SEND_FAILED | Failed to send message to the peer participant for a real-time room.
int | STATUS_REAL_TIME_ROOM_NOT_JOINED | Failed to send message to the peer participant for a real-time room, since the user has not joined the room.
int | STATUS_REQUEST_UPDATE_PARTIAL_SUCCESS | Some of the batched network operations succeeded.
int | STATUS_REQUEST_UPDATE_TOTAL_FAILURE | All of the request update operations attempted failed.
int | STATUS_SNAPSHOT_COMMIT_FAILED | The attempt to commit the snapshot change failed.
int | STATUS_SNAPSHOT_CONFLICT | A conflict was detected for the snapshot.
int | STATUS_SNAPSHOT_CONTENTS_UNAVAILABLE | An error occurred while attempting to open the contents of the snapshot.
int | STATUS_SNAPSHOT_CREATION_FAILED | The attempt to create a snapshot failed.
int | STATUS_SNAPSHOT_FOLDER_UNAVAILABLE | The root folder for snapshots could not be found or created.
int | STATUS_SNAPSHOT_NOT_FOUND | The specified snapshot does not exist on the server.
int | STATUS_TIMEOUT | The operation timed out while awaiting the result.

Public Methods
static String | getStatusString(int statusCode) Get the string associated with the status code.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final int STATUS_ACHIEVEMENT_NOT_INCREMENTAL

Indicates that the call to increment achievement failed since the achievement is not an incremental achievement.

Constant Value: 3002 (0x00000bba)

#### public static final int STATUS_ACHIEVEMENT_UNKNOWN

Could not find the achievement, so the operation to update the achievement failed.

Constant Value: 3001 (0x00000bb9)

#### public static final int STATUS_ACHIEVEMENT_UNLOCKED

Indicates that the incremental achievement was also unlocked when the call was made to increment the achievement.

Constant Value: 3003 (0x00000bbb)

#### public static final int STATUS_ACHIEVEMENT_UNLOCK_FAILURE

An incremental achievement cannot be unlocked directly, so the call to unlock achievement failed.

Constant Value: 3000 (0x00000bb8)

#### public static final int STATUS_APP_MISCONFIGURED

The developer has misconfigured their application in some way. The logs will contain more data about the error and the appropriate resolution.

Constant Value: 8 (0x00000008)

#### public static final int STATUS_CLIENT_RECONNECT_REQUIRED

The GoogleApiClient is in an inconsistent state and must reconnect to the service to resolve the issue. Further calls to the service using the current connection are unlikely to succeed.

Constant Value: 2 (0x00000002)

#### public static final int STATUS_GAME_NOT_FOUND

The specified game ID was not recognized by the server.

Constant Value: 9 (0x00000009)

#### public static final int STATUS_INTERNAL_ERROR

An unspecified error occurred; no more specific information is available. The device logs may provide additional data.

Constant Value: 1 (0x00000001)

#### public static final int STATUS_INTERRUPTED

Was interrupted while waiting for the result. Only returned if using a `PendingResult` directly.

Constant Value: 14 (0x0000000e)

#### public static final int STATUS_INVALID_REAL_TIME_ROOM_ID

Constant indicating that the real-time room ID provided to the operation was not valid, or does not correspond to the currently active real-time room.

Constant Value: 7002 (0x00001b5a)

#### public static final int STATUS_LICENSE_CHECK_FAILED

The game is not licensed to the user. Further calls will return the same code.

Constant Value: 7 (0x00000007)

#### public static final int STATUS_MATCH_ERROR_ALREADY_REMATCHED

The specified match has already had a rematch created. Only one rematch may be created for any initial match.

Constant Value: 6505 (0x00001969)

#### public static final int STATUS_MATCH_ERROR_INACTIVE_MATCH

The match is not currently active. This action cannot be performed on an inactive match.

Constant Value: 6501 (0x00001965)

#### public static final int STATUS_MATCH_ERROR_INVALID_MATCH_RESULTS

The match results provided in this API call are invalid. This covers cases of duplicate results, results for players who are not in the match, etc.

Constant Value: 6504 (0x00001968)

#### public static final int STATUS_MATCH_ERROR_INVALID_MATCH_STATE

The match is not in the correct state to perform the specified action.

Constant Value: 6502 (0x00001966)

#### public static final int STATUS_MATCH_ERROR_INVALID_PARTICIPANT_STATE

One or more participants in this match are not in valid states. This could occur if a specified participant is not actually a participant of the match, or is invalid, or is in an incorrect state to make the API call. Check the logs for more detailed information.

Constant Value: 6500 (0x00001964)

#### public static final int STATUS_MATCH_ERROR_LOCALLY_MODIFIED

The specified match has already been modified locally. This operation cannot be performed until the match has been sent to the server.

Constant Value: 6507 (0x0000196b)

#### public static final int STATUS_MATCH_ERROR_OUT_OF_DATE_VERSION

The match data is out of date. Someone else has modified the data on the server, so the request could not be completed safely.

Constant Value: 6503 (0x00001967)

#### public static final int STATUS_MATCH_NOT_FOUND

The specified match cannot be found. The provided match ID does not correspond to any known match.

Constant Value: 6506 (0x0000196a)

#### public static final int STATUS_MILESTONE_CLAIMED_PREVIOUSLY

This quest milestone was previously claimed (on this device or another).

Constant Value: 8000 (0x00001f40)

#### public static final int STATUS_MILESTONE_CLAIM_FAILED

This quest milestone is not available for claiming. You may want to refresh quests from the server when this happens, as the local cache is out of sync with the server.

Constant Value: 8001 (0x00001f41)

#### public static final int STATUS_MULTIPLAYER_DISABLED

This game does not support multiplayer. This could occur if the linked app is not configured appropriately in the developer console.

Constant Value: 6003 (0x00001773)

#### public static final int STATUS_MULTIPLAYER_ERROR_CREATION_NOT_ALLOWED

The user is not allowed to create a new multiplayer game at this time. This could occur if the user has too many outstanding invitations already.

Constant Value: 6000 (0x00001770)

#### public static final int STATUS_MULTIPLAYER_ERROR_INVALID_MULTIPLAYER_TYPE

The match is not the right type to perform this action on. For example, this error will be returned when trying to take a turn in a real-time match.

Constant Value: 6002 (0x00001772)

#### public static final int STATUS_MULTIPLAYER_ERROR_INVALID_OPERATION

This multiplayer operation is not valid, and the server rejected it. Check the logs for more information.

Constant Value: 6004 (0x00001774)

#### public static final int STATUS_MULTIPLAYER_ERROR_NOT_TRUSTED_TESTER

The user attempted to invite another user who was not authorized to see the game. This can occur if a trusted tester invites a user who is not a trusted tester while the game is unpublished. In this case, the invitations will not be sent.

Constant Value: 6001 (0x00001771)

#### public static final int STATUS_NETWORK_ERROR_NO_DATA

A network error occurred while attempting to retrieve fresh data, and no data was available locally.

Constant Value: 4 (0x00000004)

#### public static final int STATUS_NETWORK_ERROR_OPERATION_DEFERRED

A network error occurred while attempting to modify data, but the data was successfully modified locally and will be updated on the network the next time the device is able to sync.

Constant Value: 5 (0x00000005)

#### public static final int STATUS_NETWORK_ERROR_OPERATION_FAILED

A network error occurred while attempting to perform an operation that requires network access. The operation may be retried later.

Constant Value: 6 (0x00000006)

#### public static final int STATUS_NETWORK_ERROR_STALE_DATA

A network error occurred while attempting to retrieve fresh data, but some locally cached data was available. The data returned may be stale and/or incomplete.

Constant Value: 3 (0x00000003)

#### public static final int STATUS_OK

The operation was successful.

Constant Value: 0 (0x00000000)

#### public static final int STATUS_OPERATION_IN_FLIGHT

Trying to start a join/create operation while another is already in flight.

Constant Value: 7007 (0x00001b5f)

#### public static final int STATUS_PARTICIPANT_NOT_CONNECTED

Constant indicating that the ID of the participant provided by the user is not currently connected to the client in the real-time room.

Constant Value: 7003 (0x00001b5b)

#### public static final int STATUS_QUEST_NOT_STARTED

This quest is not available yet and cannot be accepted.

Constant Value: 8003 (0x00001f43)

#### public static final int STATUS_QUEST_NO_LONGER_AVAILABLE

This quest has expired or the developer has removed, and cannot be accepted.

Constant Value: 8002 (0x00001f42)

#### public static final int STATUS_REAL_TIME_CONNECTION_FAILED

Failed to initialize the network connection for a real-time room.

Constant Value: 7000 (0x00001b58)

#### public static final int STATUS_REAL_TIME_INACTIVE_ROOM

The room is not currently active. This action cannot be performed on an inactive room.

Constant Value: 7005 (0x00001b5d)

#### public static final int STATUS_REAL_TIME_MESSAGE_SEND_FAILED

Failed to send message to the peer participant for a real-time room.

Constant Value: 7001 (0x00001b59)

#### public static final int STATUS_REAL_TIME_ROOM_NOT_JOINED

Failed to send message to the peer participant for a real-time room, since the user has not joined the room.

Constant Value: 7004 (0x00001b5c)

#### public static final int STATUS_REQUEST_UPDATE_PARTIAL_SUCCESS

Some of the batched network operations succeeded.

Constant Value: 2000 (0x000007d0)

#### public static final int STATUS_REQUEST_UPDATE_TOTAL_FAILURE

All of the request update operations attempted failed. Retrying will not fix these errors.

Constant Value: 2001 (0x000007d1)

#### public static final int STATUS_SNAPSHOT_COMMIT_FAILED

The attempt to commit the snapshot change failed. See the device logs for more details.

Constant Value: 4003 (0x00000fa3)

#### public static final int STATUS_SNAPSHOT_CONFLICT

A conflict was detected for the snapshot. Use `resolveConflict(GoogleApiClient, String, Snapshot)` to resolve this conflict.

Constant Value: 4004 (0x00000fa4)

#### public static final int STATUS_SNAPSHOT_CONTENTS_UNAVAILABLE

An error occurred while attempting to open the contents of the snapshot. See the device logs for more details.

Constant Value: 4002 (0x00000fa2)

#### public static final int STATUS_SNAPSHOT_CREATION_FAILED

The attempt to create a snapshot failed. See the device logs for more details.

Constant Value: 4001 (0x00000fa1)

#### public static final int STATUS_SNAPSHOT_FOLDER_UNAVAILABLE

The root folder for snapshots could not be found or created. See the device logs for more details on the failure.

Constant Value: 4005 (0x00000fa5)

#### public static final int STATUS_SNAPSHOT_NOT_FOUND

The specified snapshot does not exist on the server.

Constant Value: 4000 (0x00000fa0)

#### public static final int STATUS_TIMEOUT

The operation timed out while awaiting the result. Only returned if using a `PendingResult` directly.

Constant Value: 15 (0x0000000f)

## Public Methods

#### public static String getStatusString (int statusCode)

Get the string associated with the status code. This can be used for clearer logging messages to avoid having to look up error codes. TODO Consider replacing this with a generated class using annotations.

##### Parameters

statusCode | The status code to get the message string for.

##### Returns

- The string associated with the error code.