| Type | Constant | Result Code | Description |
|---|
| HMS SDK Framework Error Code | For details, see HMS SDK Framework Error. |
| Game Service Error Code | GAME_STATE_SUCCESS | 0 | Success. |
| GAME_STATE_FAILED | -1 | Common game API failure. |
| GAME_STATE_ERROR | 7001 | Common error. |
| GAME_STATE_NETWORK_ERROR | 7002 | Network error. |
| GAME_STATE_USER_CANCEL | 7003 | The user cancels the operation. |
| GAME_STATE_USER_CANCEL_LOGIN | 7004 | The user cancels the sign-in. |
| GAME_STATE_PARAM_ERROR | 7005 | Incorrect input parameters. |
| GAME_STATE_NO_SUPPORT | 7006 | The game service is unavailable in the region. |
| GAME_STATE_NOT_SUPPORT | 7010 | The current device does not support the game service. |
| GAME_STATE_PARAM_NULL | 7011 | Empty input parameters. |
| GAME_STATE_CALL_REPEAT | 7012 | Repeated API call. |
| GAME_STATE_NOT_LOGIN | 7013 | The HUAWEI ID is not signed in. |
| GAME_STATE_NOT_REGISTER | 7015 | The hardware capability is not registered. |
| GAME_STATE_REALNAME_REGISTER | 7016 | The user has used the real name. |
| GAME_STATE_REGISTER_FAIL | 7017 | Incorrect system settings (game registration failure). |
| GAME_STATE_NOT_INIT | 7018 | The initialization API is not called. |
| GAME_STATE_ACCOUNT_NOT_MATCH | 7019 | The signed-in HUAWEI ID is different from that of the device. |
| GAME_STATE_ACHIEVEMENT_NO_UPGRADE | 7200 | The achievement is not increased. |
| GAME_STATE_ACHIEVEMENT_NONEXIST | 7201 | The achievement is not found. |
| GAME_STATE_ACHIEVEMENT_UNLOCKED | 7202 | The achievement is unlocked. |
| GAME_STATE_ACHIEVEMENT_UNLOCK_FAILED | 7203 | The achievement fails to be unlocked. |
| GAME_STATE_ACHIEVEMENT_NOT_SUPPORT | 7204 | AppAssistant does not support achievement display. (The EMUI version is earlier than 9.0, AppAssistant is not installed, the AppAssistant version is earlier than10.1, or the app has not been released.) |
| GAME_STATE_RANKINGS_NOT_SUPPORT | 7205 | AppAssistant does not support leaderboard display. (The EMUI version is earlier than 9.0, AppAssistant is not installed, or the AppAssistant version is earlier than 10.3, or the app has not been released.) |
| GAME_STATE_ARCHIVE_ADD_FAILED | 7206 | Failed to add the archive file. |
| GAME_STATE_ARCHIVE_CONFLICT_LOST | 7207 | The conflict does not exist. |
| GAME_STATE_ARCHIVE_OPEN_FAILED | 7208 | An error occurred when reading the content of the archive file. |
| GAME_STATE_ARCHIVE_ADD_FAILED | 7209 | Failed to create the archive. |
| GAME_STATE_ARCHIVE_DIRECTORY_FAILED | 7210 | The root folder for the archive was not found or could not be created when the archive was submitted. |
| GAME_STATE_ ARCHIVE_NOT_FOUND | 7211 | The specified archive does not exist. |
| GAME_STATE_ARCHIVE_NOT_SUPPORT | 7212 | AppAssistant does not support saved game display. (The EMUI version is earlier than 9.0, AppAssistant is not installed, or the AppAssistant version is earlier than 10.3, or the app has not been released.) |
| GAME_STATE_ARCHIVE_NUM_MAX_LIMIT | 7213 | The number of archives has reached the upper limit. |
| GAME_STATE_ARCHIVE_SIZE_MAX_LIMIT | 7214 | The size of the archive image or file has reached the upper limit. |
| GAME_STATE_RINGINGS_NOT_FOUND | 7215 | No leaderboard data found. |
| GAME_STATE_ARCHIVE_IMAGE_NOT_SUPPORT | 7216 | Unsupported archive image format. |
| GAME_STATE_ARCHIVE_COMMIT_CACHED | 7217 | The archive is not uploaded, but only cached locally. |
| GAME_STATE_GAMESERVICE_AUTHOR_FAILURE | 7218 | Game service authorization failed. The user does not agree to the AppGallery agreement. |
| GAME_STATE_ARCHIVE_NO_DRIVE | 7219 | The user has not enabled HUAWEI Drive Kit Service. |
| GAME_STATE_REALNAME_CANCEL | 7021 | The user has canceled real-name authentication. |
| GAME_STATE_REALNAME_NOT_SUPPORT | 7022 | Game duration statistics by real name is not supported because the user is an adult or has not performed identity verification. |
| GAME_STATE_CALL_FREQUENTLY | 7023 | Too frequent calls. |