1# @ohos.ability.errorCode (ErrorCode) 2 3The **ErrorCode** module defines the error codes that may be returned when an ability is started. 4 5> **NOTE** 6> 7> 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. 8 9## Modules to Import 10 11```ts 12import { ErrorCode } from '@kit.AbilityKit'; 13``` 14 15## ErrorCode 16 17Enumerates the error codes that may be returned when an ability is started. 18 19**System capability**: SystemCapability.Ability.AbilityRuntime.Core 20 21| Name | Value | Description | 22| ------------------------------ | ---- | ---------------------------------------- | 23| NO_ERROR | 0 | No error. | 24| INVALID_PARAMETER | -1 | Invalid parameter.| 25| ABILITY_NOT_FOUND | -2 | The ability is not found.| 26| PERMISSION_DENY | -3 | Permission denied. | 27