
# 错误码
当您调用API时，如果遇到"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
更多服务错误码请参见[API错误中心](https://apierrorcenter.developer.huaweicloud.com/apierrorcenter)。
| 状态码 | 错误码      | 错误信息                                                                                         | 描述                        | 处理措施                        |
|:---|:---|:---|:---|:---|
| 400 | RAM.1001 | The domain id in the header or the token is invalid.                                         | 账号ID或token无效。             | 请检查账号ID是否正确。                |
| 400 | RAM.1002 | The domain id %s in the header is invalid.                                                   | 账号ID无效。                   | 请检查账号ID是否正确。                |
| 400 | RAM.1003 | The token is invalid.                                                                        | token无效。                  | 请联系技术支持。                    |
| 400 | RAM.1004 | The account id is invalid.                                                                   | 账号ID无效。                   | 请检查资源使用者的账号ID是否正确。          |
| 400 | RAM.1005 | The share principal %s cannot be the owner.                                                  | 共享的使用者不能是资源所有者。           | 请检查资源使用者是否设置正确。             |
| 400 | RAM.1006 | The principal is invalid for duplicate.                                                      | 资源使用者存在重复。                | 请删除重复的资源使用者。                |
| 400 | RAM.1007 | The resource urn is invalid for duplicate.                                                   | 共享资源的URN存在重复。             | 请删除重复的共享资源URN。              |
| 400 | RAM.1008 | Bad request for checking permission.                                                         | 共享资源的权限异常。                | 请检查是否已经对IAM用户授予RAM操作权限。     |
| 400 | RAM.1009 | The resource type %s has no permission.                                                      | 共享资源未设置权限。                | 请设置共享资源的权限。                 |
| 400 | RAM.1010 | The domain id %s does not own the resource urn %s.                                           | 账号ID与资源URN不匹配。            | 请检查账号ID与资源URN是否匹配。          |
| 400 | RAM.1011 | The %s num exceeds %s quota %s if add count %s.                                              | 超出最大配额。                   | 请检查请求参数。                    |
| 400 | RAM.1012 | The %s num exceeds the total quota %s if add count %s.                                       | 超出最大配额。                   | 请检查请求参数。                    |
| 400 | RAM.1013 | The organization management id %s has not enabled sharing.                                   | 组织共享功能未开启。                | 请开启组织共享功能。                  |
| 400 | RAM.1014 | The cross organizations share cannot shared to the organizations with the principal %s.      | 跨组织共享无效。                  | 请检查资源使用者的账号是否属于其他组织。        |
| 400 | RAM.1015 | The cross organizations share cannot shared to the organizations unit with the principal %s. | 跨组织共享无效。                  | 请检查资源使用者的账号是否属于其他组织。        |
| 400 | RAM.1016 | The cross organizations share cannot shared to the organizations root with the principal %s. | 跨组织共享无效。                  | 请检查资源使用者的账号是否属于其他组织。        |
| 404 | RAM.1017 | The resource share id %s is not found.                                                       | 资源共享实例的ID无效。              | 请检查资源共享实例的ID是否正确。           |
| 404 | RAM.1018 | The permission id %s is not found.                                                           | 共享资源的权限ID无效。              | 请检查共享资源的权限ID是否正确。           |
| 400 | RAM.1019 | Please accept the open beta of resource access service.                                      | 租户未申请服务公测。                | 请先申请服务公测。                   |
| 404 | RAM.1020 | Get project failed.                                                                          | 获取project失败。              | 请检查账号ID是否正确。                |
| 404 | RAM.1021 | Get domain information failed.                                                               | 获取domain信息失败。             | 请联系技术支持。                    |
| 404 | RAM.1022 | The principal %s is not exist.                                                               | 资源使用者不存在。                 | 请检查资源使用者是否正确。               |
| 404 | RAM.1023 | The principal %s is invalid.                                                                 | 资源使用者无效。                  | 请检查资源使用者是否正确。               |
| 404 | RAM.1024 | The urn %s is invalid.                                                                       | 共享资源的URN无效。               | 请检查共享资源的URN是否正确。            |
| 400 | RAM.1025 | Server SSL cert check failed.                                                                | SSL证书检查失败。                | 请联系技术支持。                    |
| 400 | RAM.1026 | Query restricted list failed.                                                                | 查询受限列表失败。                 | 请联系技术支持。                    |
| 400 | RAM.1027 | Query frozen list failed.                                                                    | 查询冻结列表失败。                 | 请联系技术支持。                    |
| 400 | RAM.1028 | Bad request for notification.                                                                | 请求错误。                     | 请联系技术支持。                    |
| 403 | RAM.1029 | The current operation has been restricted.                                                   | 当前操作受限。                   | 请检查账号是否被受限。                 |
| 403 | RAM.1030 | The current operation has been frozen.                                                       | 当前操作已冻结。                  | 请检查账号是否被冻结。                 |
| 400 | RAM.1031 | Bad request for authorization header pattern.                                                | 请求头校验失败。                  | 请联系技术支持。                    |
| 400 | RAM.1032 | Bad quota type.                                                                              | 错误的配额类型。                  | 请检查配额类型是否正确。                |
| 400 | RAM.1033 | Async job failed.                                                                            | 任务执行失败。                   | 请联系技术支持。                    |
| 400 | RAM.1034 | Don\`t have lock                                                                             | 获取锁失败。                    | 请联系技术支持。                    |
| 400 | RAM.1035 | Bad request for invalid context attributes.                                                  | 请求错误。                     | 请联系技术支持。                    |
| 400 | RAM.1036 | Bad request for request proof.                                                               | 请求错误。                     | 请联系技术支持。                    |
| 400 | RAM.1037 | Bad request for impersonate.                                                                 | 请求错误。                     | 请联系技术支持。                    |
| 400 | RAM.1101 | The status %s of the resource share with id %s is not active.                                | 资源共享实例的状态未激活。             | 请检查资源共享实例的状态。               |
| 400 | RAM.1102 | There are resources in use in the resource share %s.                                         | 资源共享实例中存在已绑定的资源。          | 请检查资源是否已被绑定。                |
| 400 | RAM.1103 | Some resources do not have or have multiple corresponding permissions.                       | 共享资源未添加或添加多种权限。           | 请检查共享资源的权限是否设置正确。           |
| 404 | RAM.1104 | Http header not found.                                                                       | HTTP请求头无效。                | 请检查HTTP请求头。                 |
| 400 | RAM.1105 | Bad request for invalid user profile.                                                        | HTTP请求头中UserProfile参数无效。  | 请检查HTTP请求头中UserProfile参数。   |
| 400 | RAM.1106 | Get domain tags failed.                                                                      | 获取Domain标签失败。             | 请联系技术支持。                    |
| 500 | RAM.1107 | Bad request for invalid token.                                                               | 获取OP账号Token失败。            | 请联系技术支持。                    |
| 400 | RAM.1108 | Cannot share resource across sites between international account and national account.       | 国内站与国际站禁止共享资源。            | 请检查资源所有者和资源使用者是否属于相同站点。     |
| 400 | RAM.1109 | Cannot share resource between op account and not-op account.                                 | OP账号与非OP账号禁止共享资源。         | 请检查资源所有者和资源使用者是否属于相同类型账号。   |
| 400 | RAM.1110 | Resource sharing not allowed between internal and external accounts.                         | 华为内部客户账号与外部客户账号之间禁止共享资源。  | 请检查资源所有者和资源使用者是否属于相同类型账号。   |
| 400 | RAM.1201 | The request body is empty.                                                                   | 请求参数为空。                   | 请检查请求参数。                    |
| 409 | RAM.1202 | Some principals have been associated to the resource share with id %s.                       | 资源共享实例中已绑定同样的资源使用者。       | 请检查是否重复绑定同一个资源使用者。          |
| 409 | RAM.1203 | Some resources have been associated to the resource share with id %s.                        | 资源已被资源共享实例关联。             | 请检查是否重复关联同一个资源。             |
| 400 | RAM.1204 | The status %s of the resource share is not active.                                           | 资源共享实例的状态未激活。             | 请联系技术支持。                    |
| 400 | RAM.1205 | Get organization id error.                                                                   | 获取组织ID错误。                 | 请检查账号ID是否正确。                |
| 400 | RAM.1206 | Get ancestors error.                                                                         | 获取上层组织错误。                 | 请检查账号ID是否正确。                |
| 400 | RAM.1207 | Unable to disassociate the principal or the resource which is not exist or owned by you.     | 无法解除不属于您或不存在的资源或资源使用者的关联。 | 请检查资源使用者或资源是否正确。            |
| 400 | RAM.1208 | Unable to disassociate the principal because you belong to the organization.                 | 无法移除属于组织的资源使用者。           | 请检查资源使用者是否属于组织。             |
| 400 | RAM.1209 | Get organization path failed.                                                                | 获取租户组织路径失败。               | 请联系技术支持。                    |
| 400 | RAM.1301 | The status %s of the resource share is not active.                                           | 资源共享实例的状态未激活。             | 请联系技术支持。                    |
| 409 | RAM.1302 | The resource type %s has associated one permission.                                          | 共享资源已经绑定权限。               | 请检查请求参数。                    |
| 409 | RAM.1303 | The resource type %s is in use in the resource share with id %s.                             | 共享资源正在使用中，无法解绑此共享资源的权限。   | 请停止使用此共享资源后再进行解绑权限操作。       |
| 409 | RAM.1701 | The current status of the invitation is %s.                                                  | 资源共享邀请的状态异常。              | 请检查资源共享邀请的状态是否正确。           |
| 404 | RAM.1702 | The resource share invitation with id %s is not found.                                       | 资源共享的邀请无效。                | 请检查资源共享的邀请是否过期。             |
| 400 | RAM.1801 | The account id %s is not the management account of organization.                             | 账号ID不是组织管理账号。             | 非组织管理账号无法进行该操作，请联系组织管理账号处理。 |
| 400 | RAM.1802 | Get organization info error.                                                                 | 组织信息错误。                   | 请检查组织信息是否正确。                |
| 400 | RAM.1803 | The sharing with organization is not enabled by management account %s.                       | 组织管理账号未开启共享。              | 请联系组织管理账号开启组织共享功能。          |
| 501 | RAM.1804 | RAM is not support organization sharing function.                                            | RAM不支持组织共享功能。             | 请联系技术支持。                    |
| 400 | RAM.1901 | Tag key is exist for resource share id.                                                      | 资源共享实例已存在此标签键。            | 请检查该资源共享实例中是否已存在同名标签。       |
| 400 | RAM.1902 | The tag key is duplicate.                                                                    | 标签键重复。                    | 请检查标签键是否重复。                 |
| 400 | RAM.1903 | The tag value is duplicate.                                                                  | 标签值重复。                    | 请检查标签值是否重复。                 |
| 400 | RAM.1904 | Failed to check the resource tag.                                                            | 检查资源标签失败。                 | 请联系技术支持。                    |
| 400 | RAM.1905 | The tag policy doesn't allow the specified value for the following tag key.                  | 标签策略不允许这些标签键使用指定的标签值。     | 请检查标签是否符合标签策略。              |
   
