errorcode-universal.md 1.8 KB
Newer Older
E
esterzhou 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# Universal Error Codes

## 201 Permission Denied

**Error Message**

Permission verification failed, usually the result returned by VerifyAccessToken.

**Description**

This error code is reported when permission verification fails.

**Possible Causes**

The application calls an API without the required permission.

**Solution**

Check the permission required to call the API and make sure the application has the permission.

## 202 Permission Verification Failed for Calling a System API

**Error Message**

Permission verification failed, application which is not a system application uses system API.

**Description**

This error code is reported when a non-system application failed the permission verification.

**Possible Causes**

The API called by the application is a system API.

**Solution**

Check whether any system API is called. Delete it if any.

## 401 Parameter Check Failed

**Error Message**

BusinessError 401: Parameter error. The type of "${parameterName}" must be ${validType}[or ${validInput}].

**Description**

E
ester.zhou 已提交
47
This error code is reported when a parameter error occurs. Regardless of whether the API is synchronous or asynchronous, this type of error is generally thrown in synchronous mode.
E
esterzhou 已提交
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73

**Possible Causes**

The mandatory parameter is not passed in, or the parameter type is invalid.

**Solution**

Make sure the mandatory parameter is passed in and the type of the passed parameter is invalid.

## 801 API Not Supported

**Error Message**

BusinessError 801: Capability not supported. function ${functionName } can not work correctly due to limited device capabilities.

**Description**

This error code is reported when the device supports the target SysCap but does not support a specific API.

**Possible Causes**

The device does not support the API.

**Solution**

Check whether the device supports the API.