本文汇总了边缘函数中可能出现的错误码。
具体公共错误码请参考通用错误码文档。
通用错误码
| CodeN | Code | 备注 | Message |
|---|---|---|---|
| 10200 | Success | Success | 请求成功 |
| 10400 | BadRequest | Bad request | 非法请求 |
| 10401 | Unauthorized | Unauthorized | 未授权 |
| 10403 | NoPermission | No permissions | 无权访问 |
| 10404 | RecordNotFound | Record not found | 资源不存在 |
| 10408 | RpcTimeOut | Timeout | 远程调用超时 |
| 10500 | InternalServerError | Internal server error | 服务内部错误 |
边缘函数错误码
| CodeN | Code | 备注 | Message |
|---|---|---|---|
| 11002 | ErrInvalidCronJobName | Invalid cron job name | 非法的任务名 |
| 11003 | ErrInvalidCronExpression | Invalid cron expression | 非法的任务表达式 |
| 11004 | ErrRequestTooFast | Request too fast | 请求过快 |
| 11005 | ErrClazzNotFound | Clazz not found | 套餐不存在 |
| 11006 | ErrClusterNotFound | Cluster not found | 集群不存在 |
| 11007 | ErrCronJobNotFound | Cron job not found | 任务不存在 |
| 11008 | ErrRevisionNotFound | Revision not found | 版本不存在 |
| 11010 | ErrSparrowNotFound | Sparrow not found | 函数不存在 |
| 11011 | ErrTicketNotFound | Ticket not found | 工单不存在 |
| 11013 | ErrUnknownMetricsType | Unknown metrics type | 未知监控类型 |
| 11014 | ErrTooLargeSourceCode | Too large source code | 代码大小超出限制 |
| 11015 | ErrDuplicateEnvKey | Duplicate env key | 环境变量关键字重复 |
| 11016 | ErrTooLargeEnv | Too large env | 环境变量大小超出限制 |
| 11017 | ErrSparrowQuotaNotEnough | Sparrow quota not enough | 函数配额不足 |
| 11018 | ErrSparrowJobQuotaNotEnough | Sparrow job quota not enough | 任务配额不足 |
| 11023 | ErrServiceNotAvailable | Service not available | 服务不可用 |
| 11024 | ErrSparrowDomainExisted | Sparrow domain existed | 域名已存在 |
| 11025 | ErrCronJobNameExisted | Cron job name existed | 任务名已存在 |
| 11026 | ErrIllegalDomain | Illegal domain | 非法域名 |
| 11027 | ErrInvalidName | Invalid name | 无效名字 |
| 11028 | ErrInvalidDomain | Invalid domain | 无效域名 |
| 11029 | ErrInvalidKey | Invalid key | 无效关键字 |
| 11030 | ErrCronTaskNotFound | Cron task not found | 调度记录不存在 |
| 11031 | ErrIllegalOrderType | Illegal order type | 非法搜索类型 |
| 11032 | ErrIllegalSourceCode | Illegal source code | 非法代码 |
| 11033 | ErrUnknownClusterType | Unknown cluster type | 未知集群类型 |
| 11034 | ErrUnknownCronType | Unknown cron type | 未知调度类型 |
| 11035 | ErrIllegalRegion | Illegal region | 非法大区名 |
| 11036 | ErrIllegalCity | Illegal city | 非法城市名 |
| 11037 | ErrInvalidClusters | Invalid clusters | 无效集群 |
| 11038 | ErrAccountPlanExisted | Account plan existed | 账号已存在 |
| 11039 | ErrAccountPlanNotFound | Account plan not found | 账号不存在 |
| 11040 | ErrNoPurchasePermission | No purchase permission | 无购买权限 |
| 11041 | ErrOrderFailed | Order failed | 下单失败 |
| 11042 | ErrAccountInArrears | Account in arrears | 账号欠费 |
| 11043 | ErrNotVerifiedAccount | Not verified account | 账户未做实名认证 |