
# 错误码
如果操作请求在执行过程中出现异常导致未被处理，则会返回一条错误信息。错误信息中包括错误码和具体错误描述，[表1 错误码说明]列出了错误信息中的常见错误码及错误信息，您可根据描述处理相应的异常。
表1错误码说明 
| 状态码 | 错误码          | 错误信息                                                               | 描述                 |
|:---|:---|:---|:---|
| 400 | UCS.00000001 | Failed to obtain the user information.                             | 未能获取用户信息           |
| 400 | UCS.00000011 | Bad query parameter value.                                         | 请求参数非法             |
| 400 | UCS.00000012 | Invalid request body.                                              | 请求体非法              |
| 400 | UCS.00000016 | Invalid header value.                                              | 请求头非法              |
| 400 | UCS.00000017 | Insufficient quota                                                 | 配额不足               |
| 400 | UCS.00010003 | Failed to create agency.                                           | 创建委托失败             |
| 400 | UCS.00010009 | Failed to get project token by agency                              | 通过委托获取项目token失败    |
| 400 | UCS.00010011 | Failed to get project id by project name.                          | 获取项目id失败           |
| 400 | UCS.00010012 | IAM agency quota insufficient, please expand agency quota          | 超出IAM委托配额          |
| 400 | UCS.00010013 | fail to get iam pdp authorize result                               | 获取PDP鉴权结果失败        |
| 400 | UCS.00030002 | Failed to obtain the cluster information.                          | 获取集群信息失败           |
| 400 | UCS.00030003 | Failed to get resourceJob info with cluster status                 | 获取resource job失败   |
| 400 | UCS.00060001 | Cluster git ops validate failed                                    | 集群GitOps验证失败       |
| 400 | UCS.00060002 | Cluster has enable gitops                                          | 集群已启用GitOps        |
| 400 | UCS.00060003 | Cluster not enable gitops                                          | 集群未启用GitOps        |
| 400 | UCS.00060004 | Cluster git ops installing                                         | 集群GitOps安装中        |
| 400 | UCS.00060005 | Cluster git ops closing                                            | 集群GitOps关闭中        |
| 400 | UCS.00100001 | Failed to publish message to smn.                                  | 发布消息到SMN失败         |
| 400 | UCS.00100002 | smn topic error.                                                   | SMN主题错误            |
| 400 | UCS.00100003 | smn subscription error.                                            | SMN订阅错误            |
| 400 | UCS.00110001 | SDR failed to get billing raw data                                 | 获取计费数据失败           |
| 400 | UCS.00120001 | CBC failed to update resources status                              | 更新CBC资源状态失败        |
| 400 | UCS.00150001 | Cluster policy validate failed.                                    | 集群策略验证失败           |
| 400 | UCS.00150002 | ClusterGroup policy validate failed.                               | 集群组策略验证失败          |
| 400 | UCS.00150003 | Cluster has enable policy.                                         | 集群已启用策略            |
| 400 | UCS.00150004 | ClusterGroup has enable policy.                                    | 集群组已启用策略           |
| 400 | UCS.00150005 | Cluster not enable policy.                                         | 集群未启用策略            |
| 400 | UCS.00150006 | ClusterGroup not enable policy.                                    | 集群组未启用策略           |
| 400 | UCS.00150008 | Create constraint request validate failed.                         | 创建约束请求验证失败         |
| 400 | UCS.00150009 | Update constraint request validate failed.                         | 更新约束请求验证失败         |
| 400 | UCS.01000001 | Failed to obtain the user information.                             | 获取用户信息失败           |
| 400 | UCS.01000011 | Bad query parameter value.                                         | 请求参数非法             |
| 400 | UCS.01000012 | Invalid request body.                                              | 请求体非法              |
| 400 | UCS.01000016 | Invalid header value.                                              | 请求头非法              |
| 400 | UCS.01000017 | Insufficient quota                                                 | 配额不足               |
| 400 | UCS.01000018 | Quota info validate failed                                         | 配额参数校验失败           |
| 400 | UCS.01010005 | get IAM agency's token error                                       | 获取委托token失败        |
| 400 | UCS.01010006 | fail to get iam pdp authorize result                               | 获取PDP鉴权结果失败        |
| 400 | UCS.01030002 | Failed to obtain the cluster information.                          | 获取集群信息失败           |
| 400 | UCS.01030004 | Cluster status is unavailable, please fix cluster first.           | 集群状态不可用            |
| 400 | UCS.01030006 | Create resource job for cluster error                              | 集群创建resource job失败 |
| 400 | UCS.01030007 | Create on-demand order for cluster error                           | 创建按需订单失败           |
| 400 | UCS.01030008 | Cluster kubeconfig format error.                                   | 集群kubeconfig格式错误   |
| 400 | UCS.01030009 | This cluster does not support unregister                           | 集群不支持注销            |
| 400 | UCS.01030010 | Failed to obtain cce cluster information.                          | 获取cce集群信息失败        |
| 400 | UCS.01030011 | Cluster category not supported                                     | 不支持该集群类别           |
| 400 | UCS.01030012 | Register cce cluster error                                         | 注册cce集群失败          |
| 400 | UCS.01030013 | Register attached cluster error                                    | 注册附着集群失败           |
| 400 | UCS.01030014 | Register on-premise cluster error                                  | 注册本地集群失败           |
| 400 | UCS.01030016 | Cluster has been frozen                                            | 集群已被冻结             |
| 400 | UCS.01030017 | Cluster kubeconfig not available                                   | 集群kubeconfig不可用    |
| 400 | UCS.01050001 | RecordSet create failed.                                           | 记录集创建失败            |
| 400 | UCS.01080001 | Failed to obtain the federation information.                       | 获取联邦信息失败           |
| 400 | UCS.01080002 | Cluster group has federalized.                                     | 舰队已开启联邦            |
| 400 | UCS.01080004 | Cluster group federation validate failed.                          | 开启联邦校验失败           |
| 400 | UCS.01080005 | Retry join all clusters to federation failed.                      | 重试所有集群加入联邦失败       |
| 400 | UCS.01080006 | Cluster group has not been federalized.                            | 舰队未开启联邦            |
| 400 | UCS.01080007 | Retry join cluster to federation failed.                           | 重试集群加入联邦失败         |
| 400 | UCS.01080008 | multiclusteringress or multiclusterservice resource exist.         | 存在MCI或MCS资源        |
| 400 | UCS.01080009 | VPCEP endpoint unavailable                                         | VPCEP终端节点不可用       |
| 400 | UCS.01100002 | associate cluster with clustergroup error                          | 集群加入舰队失败           |
| 400 | UCS.01100006 | Cluster number in fleet exceed limit.                              | 舰队内集群数量超过限制        |
| 400 | UCS.01100007 | Update associated clusters validate failed                         | 更新关联集群校验失败         |
| 400 | UCS.01110001 | resource notification to SMN error                                 | 通知SMN失败            |
| 400 | UCS.01130001 | policy management create reconcile job failed                      | 策略管理创建协调作业失败       |
| 400 | UCS.01130002 | policy management create disable job failed                        | 策略管理创建禁用作业失败       |
| 400 | UCS.01130003 | cluster policy validate failed.                                    | 集群策略验证失败           |
| 400 | UCS.01130005 | cluster policy management is in installing or closing status       | 集群策略管理处于安装或关闭状态    |
| 400 | UCS.01130006 | cluster group policy management is in installing or closing status | 集群组策略管理处于安装或关闭状态   |
| 400 | UCS.01140001 | cluster git ops is in installing or closing status                 | 集群GitOps处于安装或关闭状态  |
| 400 | UCS.01140002 | create git ops disable job failed                                  | 创建GitOps禁用任务失败     |
| 400 | UCS.03400001 | Invalid request.                                                   | 请求无效               |
| 400 | UCS.03400002 | Missing access key.                                                | 缺少访问密钥             |
| 401 | UCS.00000018 | Authorization failed.                                              | 授权失败               |
| 401 | UCS.01000003 | Authorization failed.                                              | 授权失败               |
| 401 | UCS.03401001 | Authorization failed.                                              | 授权失败               |
| 403 | UCS.00000004 | Request forbidden.                                                 | 禁止请求               |
| 403 | UCS.00010002 | Sub-user has no authority to create agency.                        | 子用户无权创建委托          |
| 403 | UCS.00010014 | iam pdp authentication denied                                      | PDP鉴权拒绝            |
| 403 | UCS.00010015 | iam rbac authentication denied                                     | RBAC鉴权拒绝           |
| 403 | UCS.01000004 | Request forbidden.                                                 | 禁止请求               |
| 403 | UCS.01010003 | No access permission. Please contact the administrator.            | 无访问权限              |
| 403 | UCS.01010008 | iam rbac authentication denied                                     | RBAC鉴权拒绝           |
| 403 | UCS.01010009 | Failed to get resource token                                       | 获取resource token失败 |
| 403 | UCS.01030005 | No authorization for cluster                                       | 集群授权失败             |
| 403 | UCS.03403001 | Forbidden.                                                         | 禁止访问               |
| 404 | UCS.00000013 | No requested resources found.                                      | 请求资源不存在            |
| 404 | UCS.00030001 | Cluster Not Found.                                                 | 集群不存在              |
| 404 | UCS.00050001 | Clustergroup not found                                             | 舰队不存在              |
| 404 | UCS.01000013 | No requested resources found.                                      | 请求资源不存在            |
| 404 | UCS.01030001 | Cluster Not Found.                                                 | 集群不存在              |
| 404 | UCS.01100005 | ClusterGroup Not Found.                                            | 舰队不存在              |
| 404 | UCS.03404001 | Resource not found                                                 | 资源未找到              |
| 409 | UCS.00060007 | Duplicated resource has existed                                    | 存在重复资源             |
| 409 | UCS.03409001 | Addon instance has installed.                                      | 插件实例已安装            |
| 429 | UCS.01000002 | The throttling threshold has been reached.                         | 达到流控阈值             |
| 500 | UCS.00000005 | Database operation failed.                                         | 数据库操作失败            |
| 500 | UCS.00000006 | Server internal error.                                             | 服务器内部错误            |
| 500 | UCS.00000009 | Data unmarshal error.                                              | 数据反序列化失败           |
| 500 | UCS.00000010 | Data marshal error.                                                | 数据序列化失败            |
| 500 | UCS.00010005 | Failed to get admin token from iam.                                | 获取admin token失败    |
| 500 | UCS.00150007 | Get policy job failed.                                             | 获取策略任务失败           |
| 500 | UCS.01000005 | Database operation failed.                                         | 数据库操作失败            |
| 500 | UCS.01000006 | Server internal error.                                             | 服务器内部错误            |
| 500 | UCS.01000009 | Data unmarshal error.                                              | 数据反序列化失败           |
| 500 | UCS.01000010 | Data marshal error.                                                | 数据序列化失败            |
| 500 | UCS.01000014 | Failed to encrypt data.                                            | 加密数据失败             |
| 500 | UCS.01000019 | Quota update failed                                                | 配额更新失败             |
| 500 | UCS.01010001 | Failed to get iam connection.                                      | 获取IAM连接失败          |
| 500 | UCS.01010002 | Failed to get project token by agency                              | 通过委托获取项目token失败    |
| 500 | UCS.01020002 | Failed to get certs.                                               | 获取证书失败             |
| 500 | UCS.01020003 | Failed to create certs.                                            | 创建证书失败             |
| 500 | UCS.01020004 | Failed to delete certs.                                            | 删除证书失败             |
| 500 | UCS.01080003 | Cluster group federation failed.                                   | 舰队联邦操作失败           |
| 500 | UCS.03500001 | Internal error.                                                    | 内部错误               |
   
