Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
com.huawei.wearengine.common.WearEngineErrorCode
| Scenario | Meaning | Constant Field | Value |
|---|---|---|---|
| General | Result code displayed when the request is successful. | 0 | |
| Common result codes. | 1 | ||
| Result code displayed when the Huawei Health app has not been installed. | 2 | ||
| Result code displayed when the Huawei Health app has been installed but not logged in. | 3 | ||
| Result code displayed when no device is connected to the Huawei Health app. | 4 | ||
| Result code displayed when the parameter is invalid. | 5 | ||
| Result code displayed when the remote bound object of the server is null. | 6 | ||
| Result code displayed when the user has not agreed to the Huawei Health User Agreement and/or Statement About Huawei Health and Privacy. | 7 | ||
| Result code displayed when the scope permission verification fails. | 8 | ||
| Result code displayed indicating the permission verification failure of user authorization or indicating that you have not called the corresponding authorized API. | 9 | ||
| Result code displayed when the file is invalid. | 10 | ||
| Result code displayed when too many receivers from the server receive messages from the device. | 11 | ||
| Internal result code. Requires Huawei Wear Engine contacts to locate the issue when this result code displays. | 12 | ||
| Result code displayed when the device version is not supported. | 13 | ||
| Result code displayed when the Huawei Health app runs a version that is too early. | 14 | ||
| Result code displayed when the Huawei Health app process cannot launch automatically. | 15 | ||
| Result code displayed when the device is not connected. | 16 | ||
| Result code displayed when the UUID of the device is invalid. In this case, you need to obtain the device again. | 17 | ||
| Result code displayed when the API is not supported. | 18 | ||
| Result code displayed when API calling times out. | 19 | ||
| Result code displayed when the API is called in the middle of a mode switchover. | 20 | ||
| The phone uses the ping method to check whether the wearable device is reachable. | Result code displayed when the wearable app has not been installed | 200 | |
| Result code displayed when the wearable app has been installed but not opened. | 201 | ||
| Result code displayed when the wearable app has been installed and opened. | 202 | ||
| Result code displayed when there is a system error during P2P communications. | 203 | ||
| The wearable device communicates with the phone. | 206 | ||
| Result code displayed when the service communications succeed. | 207 | ||
| Internal result code | Result code displayed when there is an internal error. Contact the Huawei technical support for assistance. | - | Ranging from 1990000000 to 2000000000 |
| Scenario | Meaning | Constant Field | Value |
| General | Result code displayed when the operation is successful. | WESErrorCodeSuccess | 0 |
| Result code displayed when the user has not logged in to Huawei Health. | WESErrorCodeAPPLogout | 3 | |
| Result code displayed when no device is bound to Huawei Health. | WESErrorCodeNoBoundDevices | 4 | |
| Result code displayed when an invalid parameter error occurs. | WESErrorCodeInvalidArgument | 5 | |
| Result code displayed when the user has not agreed to the Huawei Health User Agreement and/or Statement About Huawei Health and Privacy. | WESErrorCodeUserUnauthorized | 7 | |
| Result code displayed when the scope permission verification fails. | WESErrorCodeScopeUnauthorized | 8 | |
| Result code displayed when the user has not granted the device management permissions for Wear Engine. | WESErrorCodeUserUnauthorizedWearEngine | 9 | |
| Result code displayed when the file is invalid. | WESErrorCodeInvalidFile | 10 | |
| Result code displayed when too many receivers from the server receive messages from the wearable device. | WESErrorCodeOvermuchReceiver | 11 | |
| Result code displayed when an internal error occurs. | WESErrorCodeInternalError | 12 | |
| Result code displayed when the wearable device version is not supported. | WESErrorCodeDeviceVersionLow | 13 | |
| Result code displayed when the Huawei Health version is not supported. | WESErrorCodeAPPVersionLow | 14 | |
| Result code displayed when the device is not connected. | WESErrorCodeDeviceDisconnected | 16 | |
| Result code displayed indicating invalid UUID when the user has relinked the device. | WESErrorCodeUUIDInvalid | 17 | |
| Result code displayed when the API is not supported. | WESErrorCodeAPINotSupport | 18 | |
| Result code displayed when system Bluetooth is disabled. | WESErrorCodeDeviceConnectFailed | 21 | |
| Result code displayed when system Bluetooth is not authorized. | WESErrorCodeSystemBluetoothSwitchOff | 22 | |
| Result code displayed when the device is disconnected. | WESErrorCodeDeviceStateDisconnected | 23 | |
| The phone uses the ping method to check whether the wearable device is reachable. | Result code displayed when the watch-based app has not been installed. | WESErrorCodeP2PWatchAPPNotExit | 200 |
| Result code displayed when the watch-based app has been installed but not opened. | WESErrorCodeP2PWatchAPPNotRunning | 201 | |
| Result code displayed when the watch-based app has been installed and opened. | WESErrorCodeP2PWatchAPPRunning | 202 | |
| Result code displayed indicating other errors during P2P communications. | WESErrorCodeP2POtherError | 203 | |
| The wearable device uses the ping method to check whether the phone is reachable. | Result code displayed when the phone-based app has not been installed. | WESErrorCodeP2PPhoneAPPNotExit | 204 |
| Result code displayed when the phone-based app has been installed. | WESErrorCodeP2PPhoneAPPExit | 205 | |
| Result code displayed when the message fails to be sent. | WESErrorCodeCommFail | 206 | |
| Result code displayed when the message is sent successfully. | WESErrorCodeCommSuccess | 207 | |
| Result code displayed when the offline service communications succeed. | WESErrorCodeOfflineMsgSuccess | 209 | |
| Authorization code obtaining | Result code displayed when the authorization code is obtained successfully. | WESErrorCodeAuthCodeSucc | 210 |
| Result code displayed when the authorization code fails to be obtained due to device disconnection. | WESErrorCodeAuthCodeNoDevice | 211 | |
| Result code displayed when the authorization code fails to be obtained because the Huawei Health app is not installed. | WESErrorCodeAuthCodeAppNotInstall | 212 | |
| Result code displayed when the authorization code fails to be obtained due to URL parsing failure. | WESErrorCodeAuthCodeUrlInvalid | 213 | |
| Result code displayed when the authorization code fails to be obtained due to the app's failure to pass the MCP verification. | WESErrorCodeAuthCodeMcpError | 214 | |
| Result code displayed when the authorization code fails to be obtained because the user has not logged in to the Huawei Health app. | WESErrorCodeAuthCodeAppLogout | 215 | |
| Result code displayed when the authorization code fails to be obtained due to an invalid app signature. | WESErrorCodeAuthCodeSignInvalid | 216 | |
| Result code displayed when the authorization code fails to be obtained due to the valid permission list being empty. | WESErrorCodeAuthCodePermissionEmpty | 217 | |
| Result code displayed when the authorization code fails to be obtained due to network request errors. | WESErrorCodeAuthCodeNetworkError | 218 | |
| Result code displayed when the authorization is canceled. | WESErrorCodeAuthCodeDeauthorize | 219 | |
| Result code displayed when the authorization is granted and the Huawei Health app has been launched to obtain device information successfully. | WESErrorCodeAuthCodeAppShouldLaunch | 220 | |
| Result code displayed when the Huawei Health app has been launched, but device information is not obtained. | WESErrorCodeAuthCodeNoDevicesInfo | 221 |
| Scenario | Meaning | Constant Field Value | Value |
|---|---|---|---|
| General | Invalid parameter. | ERROR_CODE_INVALID_ARGUMENT | 5 |
| The device version is not supported. | ERROR_CODE_DEVICE_VERSION_NOT_SUPPORT | 13 | |
| The device is not connected. | ERROR_CODE_DEVICE_IS_NOT_CONNECTED | 16 | |
| The watch uses the ping commands on the phone. | The app has not been installed on the phone. | MSG_ERROR_PING_PHONE_APP_NOT_EXIST | 204 |
| The app has been installed on the phone. | MSG_ERROR_PING_PHONE_APP_NOT_RUNNING | 205 | |
| The watch communicates with the phone. | MSG_ERROR_SEND_FAIL | 206 | |
| The message has been sent. | MSG_ERROR_SEND_SUCCESS | 207 | |
| The watch version is too early. (It is recommended that you notify the users who the watch version is too early and they need to use the Huawei Health app to update the watch version.) | MSG_ERROR_CODE_VERSION_TOO_LOW | 208 |
com.huawei.watch.kit.hiwear.common.HiWearErrorCode
| Scenario | Meaning | Constant Field | Value |
|---|---|---|---|
| General | Result code displayed when the request is successful. | 0 | |
| Internal result code. Requires Huawei Wear Engine contacts to locate the issue when this result code displays. | 12 | ||
| Result code displayed when the device version is not supported. | 13 | ||
| Result code displayed when the device is not connected. | 16 | ||
| The wearable device uses the ping method to check whether the phone is reachable. | Result code displayed when the phone-based app has not been installed. | 204 | |
| Result code displayed when the phone-based app has been installed. | 205 | ||
| Result code displayed when the message fails to be sent. | 206 | ||
| Result code displayed when the message is sent successfully. | 207 |