You need to enable JavaScript to run this app.
导航
公共错误码
最近更新时间:2024.06.28 10:16:50首次发布时间:2023.02.08 13:10:46

响应状态码

API 请求成功时,HTTP 响应状态码是 200。

API 请求失败时,会出现以下任意一个情况:

  • HTTP 响应状态码是 4xx 或 5xx。
  • 响应正文的 ResponseMetadata 结构体包含 Error 字段。

如果响应出现异常,响应正文的内容如下。此时您可根据 Error 结构体中的 CodeNCodeMessage 等提示信息排查问题原因。

分类CodeCodeNMessageHTTP 响应状态码MessageCN

服务内部错误

ErrInternalServer

500100

server internal error

500

服务内部错误

公共类型校验错误

ErrParsingParams

400100

parsing params error

400

解析请求失败

ErrParamInvalid400102validation fail: %s400参数校验失败
ErrDBDuplicated400103duplicated: %s409数据库条目重复
ErrDBNotFound400104record not found :%s400数据库条目未找到
ErrZoneNotFound400105zone not found400未找到域名
ErrQuotaExceeded400109%s exceeds quota %d400%s超出限额%d
ErrRegionNotSupport400177%s service of %s not supported400当前地域%s不支持%s服务
记录操作校验ErrHostCanNotBeEmpty400130host can't be empty, use @ instead400主机记录不能为空
ErrSearchParamMissingParams400131request param: rr or type or value or line cannot be empty400记录查询条件缺失
ErrPageSizeNotValid400132page size must be less than 500 when search400分页查找的记录数量不能大于500
ErrSpecNotValid400135record %s not valid when creating record400参数不符合功能版本规格限制
数据统计校验ErrNamesNotMatch400140domain name and zone name do not match400域名与子域名不匹配
域名ErrNoVPCSpecified400170at least one vpc should be specified400未关联VPC
ErrSubnetVPCBindLimit400172zone in subnet mode should bind only one vpc400智能解析开启时只能关联一个VPC

ErrSubnetVPCChange

400173

zone in subnet mode is not allowed to change vpc bind

400

智能解析开启时不支持变更VPC

ErrChangeSubnetMode400175subnetMode is not allowed to change400智能解析模式不支持变更
ErrLoadBalance400181load balance not enabled400权重未打开
ErrWeightDisabled400182weight disabled for zone400无法操作权重
账号、服务开通ErrServiceNotOpened400190this account service not opened400账号未开通服务
ErrServiceOverdueSuspend400192this account service has been overdue and suspend400账号已欠费关停
ErrServiceAlreadyOpened400194this account service already opened400重复开通服务
ErrAccountInArrears400195this account in arrears, you cannot open this service. Please recharge your account400您的账户已欠费,无法开通此服务!请前往账户充值

API 请求成功的响应示例

{
    "ResponseMetadata": {
        "RequestId": "2021121414470101022524314706F82E05",
        "Action": "ListRecordAttributes",
        "Version": "2022-06-01",
        "Service": "private_zone",
        "Region": "cn-north-1"
    },
    "Result": {
        "TTLs": [
            600,
            1800,
            3600,
            43200,
            86400
        ],
        "Types": [
            "A",
            "AAAA",
            "CNAME",
            "TXT",
            "MX",
            "PTR"
        ]
    }
}

API 请求失败的响应示例

{
    "ResponseMetadata": {
        "RequestId": "202309122013038DC42E3586A8FE0054C6",
        "Action": "QueryPrivateZone",
        "Version": "2022-06-01",
        "Service": "private_zone",
        "Region": "cn-north-1",
        "Error": {
            "CodeN": 400105,
            "Code": "ErrZoneNotFound",
            "Message": "zone not found",
            "MessageCN": "未找到域名"
        }
    }
}