1e41f4b71Sopenharmony_ci# Universal Error Codes
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## 201 Permission Denied
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci**Error Message**
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciPermission verification failed. The application does not have the permission required to call the API.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Description**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciThis error code is reported when permission verification fails.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Possible Causes**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThe application calls an API without the required permission.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Solution**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciCheck the permission required to call the API and make sure the application has the permission.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci## 202 Permission Verification Failed for Calling a System API
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**Error Message**
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ciPermission verification failed. A non-system application calls a system API.
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci**Description**
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ciThis error code is reported when a non-system application failed the permission verification.
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci**Possible Causes**
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ciThe API called by the application is a system API.
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ci**Solution**
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ciCheck whether any system API is called. Delete it if any.
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci## 401 Parameter Check Failed
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci**Error Message**
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ciParameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci**Description**
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ciThis 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.
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci**Possible Causes**
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ciThe mandatory parameter is not passed in, or the parameter type is invalid.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci**Solution**
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ciMake sure the mandatory parameter is passed in and the type of the passed parameter is invalid.
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci## 801 API Not Supported
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci**Error Message**
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ciCapability not supported. Failed to call the API due to limited device capabilities.
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ci**Description**
64e41f4b71Sopenharmony_ci
65e41f4b71Sopenharmony_ciThis error code is reported when the device supports the target SysCap but does not support a specific API.
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci**Possible Causes**
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ciThe device does not support the API.
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ci**Solution**
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ciCheck whether the device supports the API.
74