[ { "code": 2000000, "description": "正常" }, { "code": 4000000, "description": "用户端错误", "children": [ { "code": 4010000, "description": "用户注册错误", "children": [ { "code": 4010100, "description": "用户未同意隐私协议" }, { "code": 4010200, "description": "注册国家或地区受限" }, { "code": 4010300, "description": "邮箱和手机号应至少绑定一个" }, { "code": 4010400, "description": "用户名已存在" }, { "code": 4010500, "description": "邮箱已存在" }, { "code": 4010600, "description": "手机号已存在" }, { "code": 4010700, "description": "校验码异常", "children": [ { "code": 4010701, "description": "校验码输入错误" }, { "code": 4010702, "description": "校验码不存在或过期" } ] }, { "code": 4010800, "description": "用户证件异常", "children": [ { "code": 4010801, "description": "用户证件类型未选择" }, { "code": 4010802, "description": "大陆身份证编号校验非法" }, { "code": 4010803, "description": "护照编号校验非法" }, { "code": 4010804, "description": "军官证编号校验非法" } ] } ] }, { "code": 4020000, "description": "用户登录异常", "children": [ { "code": 4020100, "description": "用户账户异常", "children": [ { "code": 4020101, "description": "用户账户不存在" }, { "code": 4020102, "description": "用户账户被冻结" }, { "code": 4020103, "description": "用户账户已作废" } ] }, { "code": 4020200, "description": "用户密码错误", "children": [ { "code": 4020201, "description": "用户输入密码错误次数超限" } ] }, { "code": 4020300, "description": "用户身份校验失败", "children": [ { "code": 4020301, "description": "用户指纹识别失败" }, { "code": 4020302, "description": "用户面容识别失败" }, { "code": 4020303, "description": "用户未获得第三方登录授权" } ] }, { "code": 4020400, "description": "用户登录已过期" }, { "code": 4020500, "description": "用户验证码错误", "children": [ { "code": 4020501, "description": "用户验证码输入错误" }, { "code": 4020502, "description": "用户验证码不存在或已过期" } ] } ] }, { "code": 4030000, "description": "访问权限异常", "children": [ { "code": 4030100, "description": "访问未授权", "children": [ { "code": 4030101, "description": "因访问对象隐私设置被拦截" }, { "code": 4030102, "description": "授权已过期" }, { "code": 4030103, "description": "无权限使用 API" } ] }, { "code": 4030200, "description": "用户访问被拦截", "children": [ { "code": 4030201, "description": "黑名单用户" }, { "code": 4030202, "description": "账号被冻结" }, { "code": 4030203, "description": "非法 IP 地址" }, { "code": 4030204, "description": "网关访问受限" }, { "code": 4030205, "description": "地域黑名单" } ] }, { "code": 4030300, "description": "服务已欠费" }, { "code": 4030400, "description": "用户签名异常", "children": [ { "code": 4030401, "description": "RSA 签名错误" } ] } ] }, { "code": 4040000, "description": "用户请求参数错误", "children": [ { "code": 4040100, "description": "包含非法恶意跳转链接" }, { "code": 4040200, "description": "无效的用户输入", "children": [ { "code": 4040201, "description": "不支持的 PrincipalType" } ] }, { "code": 4040300, "description": "请求必填参数为空", "children": [ { "code": 4040301, "description": "用户订单号为空" }, { "code": 4040302, "description": "订购数量为空" }, { "code": 4040303, "description": "缺少时间戳参数" }, { "code": 4040304, "description": "非法的时间戳参数" } ] }, { "code": 4040400, "description": "请求参数值超出允许的范围", "children": [ { "code": 4040401, "description": "参数格式不匹配" }, { "code": 4040402, "description": "地址不在服务范围" }, { "code": 4040403, "description": "时间不在服务范围" }, { "code": 4040404, "description": "金额超出限制" }, { "code": 4040405, "description": "数量超出限制" }, { "code": 4040406, "description": "请求批量处理总个数超出限制" }, { "code": 4040407, "description": "请求 JSON 解析失败" } ] }, { "code": 4040500, "description": "用户输入内容非法", "children": [ { "code": 4040501, "description": "包含违禁敏感词" }, { "code": 4040502, "description": "图片包含违禁信息" }, { "code": 4040503, "description": "文件侵犯版权" } ] }, { "code": 4040600, "description": "用户操作异常", "children": [ { "code": 4040601, "description": "用户支付超时" }, { "code": 4040602, "description": "确认订单超时" }, { "code": 4040603, "description": "订单已关闭" } ] } ] }, { "code": 4050000, "description": "用户请求服务异常", "children": [ { "code": 4050100, "description": "请求次数超出限制" }, { "code": 4050200, "description": "请求并发数超出限制" }, { "code": 4050300, "description": "用户操作请等待" }, { "code": 4050400, "description": "WebSocket 连接异常" }, { "code": 4050500, "description": "WebSocket 连接断开" }, { "code": 4050600, "description": "用户重复请求" } ] }, { "code": 4060000, "description": "用户资源异常", "children": [ { "code": 4060100, "description": "账户余额不足" }, { "code": 4060200, "description": "用户磁盘空间不足" }, { "code": 4060300, "description": "用户内存空间不足" }, { "code": 4060400, "description": "用户 OSS 容量不足" }, { "code": 4060500, "description": "用户配额已用光" } ] }, { "code": 4070000, "description": "用户上传文件异常", "children": [ { "code": 4070100, "description": "用户上传文件类型不匹配" }, { "code": 4070200, "description": "用户上传文件太大" }, { "code": 4070300, "description": "用户上传图片太大" }, { "code": 4070400, "description": "用户上传视频太大" }, { "code": 4070500, "description": "用户上传压缩文件太大" } ] }, { "code": 4080000, "description": "用户当前版本异常", "children": [ { "code": 4080100, "description": "用户安装版本与系统不匹配", "children": [ { "code": 4080101, "description": "用户安装版本过低" }, { "code": 4080102, "description": "用户安装版本过高" }, { "code": 4080103, "description": "用户安装版本已过期" } ] }, { "code": 4080200, "description": "用户 API 请求版本不匹配", "children": [ { "code": 4080201, "description": "用户 API 请求版本过高" }, { "code": 4080202, "description": "用户 API 请求版本过低" } ] } ] }, { "code": 4090000, "description": "用户隐私未授权", "children": [ { "code": 4090100, "description": "用户隐私未签署" }, { "code": 4090200, "description": "用户摄像头未授权" }, { "code": 4090300, "description": "用户相机未授权" }, { "code": 4090400, "description": "用户图片库未授权" }, { "code": 4090500, "description": "用户文件未授权" }, { "code": 4090600, "description": "用户位置信息未授权" }, { "code": 4090700, "description": "用户通讯录未授权" } ] }, { "code": 4100000, "description": "用户设备异常", "children": [ { "code": 4100100, "description": "用户相机异常" }, { "code": 4100200, "description": "用户麦克风异常" }, { "code": 4100300, "description": "用户听筒异常" }, { "code": 4100400, "description": "用户扬声器异常" }, { "code": 4100500, "description": "用户 GPS 定位异常" } ] }, { "code": 4110000, "description": "数据资源异常", "children": [ { "code": 4110100, "description": "数据资源不存在" }, { "code": 4110200, "description": "数据操作的行数不符合预期" } ] } ] }, { "code": 5000000, "description": "系统执行出错", "children": [ { "code": 5010000, "description": "系统执行超时", "children": [ { "code": 5010100, "description": "系统订单处理超时" } ] }, { "code": 5020000, "description": "系统容灾功能被触发", "children": [ { "code": 5020100, "description": "系统限流" }, { "code": 5020200, "description": "系统功能降级" } ] }, { "code": 5030000, "description": "系统资源异常", "children": [ { "code": 5030100, "description": "系统资源耗尽", "children": [ { "code": 5030101, "description": "系统磁盘空间耗尽" }, { "code": 5030102, "description": "系统内存耗尽" }, { "code": 5030103, "description": "文件句柄耗尽" }, { "code": 5030104, "description": "系统连接池耗尽" }, { "code": 5030105, "description": "系统线程池耗尽" } ] }, { "code": 5030200, "description": "系统资源访问异常", "children": [ { "code": 5030201, "description": "系统读取磁盘文件失败" } ] } ] } ] }, { "code": 6000000, "description": "调用第三方服务出错", "children": [ { "code": 6010000, "description": "中间件服务出错", "children": [ { "code": 6010100, "description": "RPC 服务出错", "children": [ { "code": 6010101, "description": "RPC 服务未找到" }, { "code": 6010102, "description": "RPC 服务未注册" }, { "code": 6010103, "description": "接口不存在" } ] }, { "code": 6010200, "description": "消息服务出错", "children": [ { "code": 6010201, "description": "消息投递出错" }, { "code": 6010202, "description": "消息消费出错" }, { "code": 6010203, "description": "消息订阅出错" }, { "code": 6010204, "description": "消息分组未查到" } ] }, { "code": 6010300, "description": "缓存服务出错", "children": [ { "code": 6010301, "description": "key 长度超过限制" }, { "code": 6010302, "description": "value 长度超过限制" }, { "code": 6010303, "description": "存储容量已满" }, { "code": 6010304, "description": "不支持的数据格式" } ] }, { "code": 6010400, "description": "配置服务出错" }, { "code": 6010500, "description": "网络资源服务出错", "children": [ { "code": 6010501, "description": "VPN 服务出错" }, { "code": 6010502, "description": "CDN 服务出错" }, { "code": 6010503, "description": "域名解析服务出错" }, { "code": 6010504, "description": "网关服务出错" } ] } ] }, { "code": 6020000, "description": "第三方系统执行超时", "children": [ { "code": 6020100, "description": "RPC 执行超时" }, { "code": 6020200, "description": "消息投递超时" }, { "code": 6020300, "description": "缓存服务超时" }, { "code": 6020400, "description": "配置服务超时" }, { "code": 6020500, "description": "数据库服务超时" } ] }, { "code": 6030000, "description": "数据库服务出错", "children": [ { "code": 6030100, "description": "表不存在" }, { "code": 6030200, "description": "列不存在" }, { "code": 6030300, "description": "多表关联中存在多个相同名称的列" }, { "code": 6030400, "description": "数据库死锁" }, { "code": 6030500, "description": "主键冲突" } ] }, { "code": 6040000, "description": "第三方容灾系统被触发", "children": [ { "code": 6040100, "description": "第三方系统限流" }, { "code": 6040200, "description": "第三方功能降级" } ] }, { "code": 6050000, "description": "通知服务出错", "children": [ { "code": 6050100, "description": "短信提醒服务失败" }, { "code": 6050200, "description": "语音提醒服务失败" }, { "code": 6050300, "description": "邮件提醒服务失败" } ] } ] } ]