| CLASS info |
| public class SafetyDetectStatusCode extends com.huawei.hms.common.api.CommonStatusCodes |
| Returns the response status code of the Safety Detect service. |
| Type | Name | Desc |
| int | SDK_INTERNAL_ERROR | An internal error of the HMS SDK occurs. |
| int | NETWORK_ERROR | A network exception of the HMS SDK occurs. |
| int | UNSUPPORTED_AREA | The user device area does not support the Safety Detect service. |
| int | UNSUPPORTED_EMUI_VERSION | The user device version does not support the Safety Detect service. |
| int | PARAM_ERROR_EMPTY | A mandatory parameter in the request is empty. |
| int | PARAM_ERROR_INVALID | Parameters failed the verification. |
| int | APPS_CHECK_INTERNAL_ERROR | An internal error occurs during app security check. |
| int | URL_CHECK_INNER_ERROR | An internal error occurs during malicious URL check. |
| int | CHECK_WITHOUT_INIT | The initUrlCheck API is not called before urlCheck API call. |
| int | URL_CHECK_THREAT_TYPE_INVALID | The URL threat of this type cannot be detected. Only URL threats of phising and malware are supported. |
| int | URL_CHECK_REQUEST_PARAM_INVALID | Parameters for calling the urlCheck API are incorrect. |
| int | URL_CHECK_REQUEST_APPID_INVALID | An incorrect app ID is imported for urlCheck API call. |
| int | DETECT_FAIL | Fake user detection failed. |
| int | USER_DETECT_TIMEOUT | Fake user detection timed out. |
| int | USER_DETECT_INVALID_APPID | An incorrect app ID is imported for userDetection API call. |
| Return type | Method name |
| static String | getStatusCodeString(int code) Gets details about the Safety Detect error code. |
| Constant |
| public static final int SDK_INTERNAL_ERROR |
Value: 19001 An internal error of the HMS SDK occurs, for example, signature change failure on the server and internal error of the TSS. |
| Constant |
| public static final int NETWORK_ERROR |
Value: 19002 A network exception of the HMS SDK occurs. |
| Constant |
| public static final int UNSUPPORTED_AREA |
Value: 19003 The user device area does not support the Safety Detect service. |
| Constant |
| public static final int UNSUPPORTED_EMUI_VERSION |
Value: 19202 The user device version does not support the Safety Detect service. For details about EMUIs supported by Safety Detect, please refer to EMUI Version-Dependent Features. |
| Constant |
| public static final int PARAM_ERROR_EMPTY |
Value: 19150 A mandatory parameter in the request for the Safety Detect SDK is empty. |
| Constant |
| public static final int PARAM_ERROR_INVALID |
Value: 19151 Parameters in the request for the Safety Detect SDK do not meet the requirements, and the parameters failed the verification. |
| Constant |
| public static final int APPS_CHECK_INTERNAL_ERROR |
Value: 19401 An internal error of the API occurs, and the request for app security check failed. |
| Constant |
| public static final int URL_CHECK_INNER_ERROR |
Value: 19600 An internal error of the API occurs. The request for the malicious URL check failed. |
| Constant |
| public static final int CHECK_WITHOUT_INIT |
Value: 19601 The initUrlCheck API is not called before urlCheck API call. |
| Constant |
| public static final int URL_CHECK_THREAT_TYPE_INVALID |
Value: 19602 The URL threat of this type cannot be detected. Only URL threats of phising and malware are supported. |
| Constant |
| public static final int URL_CHECK_REQUEST_PARAM_INVALID |
Value: 19603 Parameters for calling the urlCheck API are incorrect. |
| Constant |
| public static final int URL_CHECK_REQUEST_APPID_INVALID |
Value: 19604 An incorrect app ID is imported for urlCheck API call. |
| Constant |
| public static final int DETECT_FAIL |
Value: 19800 Fake user detection failed. |
| Constant |
| public static final int USER_DETECT_TIMEOUT |
Value: 19801 Fake user detection timed out. |
| Constant |
| public static final int USER_DETECT_INVALID_APPID |
Value: 19802 An incorrect app ID is imported for userDetection API call. |
| Method |
| public static String getStatusCodeString (int code) |
| Returns the details about the error code. |
Parameters
| Parameter name | Parameter desc |
| code | Error code. |
Return
| type | desc |
| String | Details about the error code. |