1# Universal Error Codes
2
3## 201 Permission Denied
4
5**Error Message**
6
7Permission verification failed. The application does not have the permission required to call the API.
8
9**Description**
10
11This error code is reported when permission verification fails.
12
13**Possible Causes**
14
15The application calls an API without the required permission.
16
17**Solution**
18
19Check the permission required to call the API and make sure the application has the permission.
20
21## 202 Permission Verification Failed for Calling a System API
22
23**Error Message**
24
25Permission verification failed. A non-system application calls a system API.
26
27**Description**
28
29This error code is reported when a non-system application failed the permission verification.
30
31**Possible Causes**
32
33The API called by the application is a system API.
34
35**Solution**
36
37Check whether any system API is called. Delete it if any.
38
39## 401 Parameter Check Failed
40
41**Error Message**
42
43Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
44
45**Description**
46
471. A mandatory parameter is left unspecified.
48
492. A parameter type is incorrect.
50
513. Parameter verification failed. Regardless of whether the API is synchronous or asynchronous, this type of error is generally thrown in synchronous mode.
52
53**Possible Causes**
54
551. A mandatory parameter is not passed.
56
572. A parameter type is incorrect (Type Error).
58
593. The number of parameters is incorrect (Argument Count Error).
60
614. A null parameter is incorrect (Null Argument Error).
62
635. A parameter format is incorrect (Format Error).
64
656. A value range is incorrect (Value Range Error).
66
67**Solution**
68
69Make sure all the mandatory parameters are passed in and the types of the passed-in parameter are valid. If parameter verification fails, read the parameter specifications and locate the fault based on the possible causes.
70
71## 801 API Not Supported
72
73**Error Message**
74
75Capability not supported. Failed to call the API due to limited device capabilities.
76
77**Description**
78
79The device does not support this API. Therefore, it cannot be called properly.
80
81**Possible Causes**
82
83The device supports Syscap associated with the API but does not support the API itself.
84
85**Solution**
86
87Do not use this API on the device. Alternatively, implement conditional checks in the code to mitigate the effects of the application running across various devices, particularly under abnormal circumstances.
88