1# ErrorCode 2 3 4>  **NOTE** 5> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. 6 7 8## Modules to Import 9 10``` 11import errorCode from '@ohos.ability.errorCode' 12``` 13 14## ErrorCode 15 16Defines the error code used when the ability is started. 17 18**System capability**: SystemCapability.Ability.AbilityRuntime.Core 19 20| Name | Value | Description | 21| ------------------------------ | ---- | ---------------------------------------- | 22| NO_ERROR | 0 | No error occurs. | 23| INVALID_PARAMETER | -1 | Invalid parameter.| 24| ABILITY_NOT_FOUND | -2 | The ability is not found.| 25| PERMISSION_DENY | -3 | Permission denied. | 26