4100-4199 权限类错误
4200-4299 参数类错误
4400-4499 资源类错误
4500-4599 不支持错误
5000-5999 服务器端错误
http code | 响应码 | 描述 | desc | |
|---|---|---|---|---|
| 1 | 401 | 4100 | 权限错误 | authoriz error |
| 2 | 401 | 4101 | 密码错误 | password error |
| 3 | 401 | 4102 | 用户名或密码为空 data中携带以下信息: time:多长时间内 total:密码错误次数 max:最大允许失败次数 | user or password is empty |
| 4 | 401 | 4103 | token未空/未登陆 | token is null error |
| 5 | 401 | 4104 | token失效 | token is invalid error |
| 6 | 401 | 4105 | 账号被锁定 | user locked |
| 7 | 400 | 4200 | 参数错误 | error parameter或具体原因 |
| 8 | 400 | 4201 | 违反唯一约束 | error parameter with duplicate key |
| 9 | 400 | 4202 | 数据长度超出字段的设置长度 | value too large |
| 10 | 4400 | 资源存在错误 | not found | |
| 11 | 404 | 4401 | 资源找不到 | error not found |
| 12 | 4500 | 不支持错误 | not supported | |
| 13 | 405 | 4501 | 方法不支持 | method not supported |
| 14 | 500 | 5000 | 服务器错误 | server error |
| username/password is null or mobile/code is null | 用户名/密码为空或手机号/验证码为空 |
| this plan is can't edit | 该计划不能被编辑 |
| tenant is null | 租户不存在 |
| telephone is null | 手机号为空 |
| telephone already exists | 手机号已存在 |
| Some user owns this Organization! | 该组织下已有用户 |
| Some user owns the role! | 该角色下已有用户 |
| smsCode is null | 验证码为空 |
| smsCode is error | 验证码错误 |
| send sms code more then xxx in 1 minute | 1分钟内手机验证码已超过xxx次 |
| parentId is not number | 父ID不是数字 |
| orgId is not number | 组织ID不是数字 |
| mobile/code is null | 手机号或验证码为空 |
| mobile,passwd,smsCode,uuid,host colud not be null | 手机号、密码、验证码、UUID、Host不能为空 |
| mobile not exists | 手机号不存在 |
| mobile is error | 手机号错误 |
| missing parameter,need:email,passwd,smsCode,uuid,host | 缺少参数:邮箱、密码、验证码、UUID、Host |
| missing parameter,need:email,passwd,code,uuid | 缺少参数:邮箱、密码、验证码、UUID |
| host or name exist | Host或名称已存在 |
| file is null | 文件为空 |
| email,passwd,code,uuid colud not be null | 邮箱、密码、验证码、UUID不能为空 |
| email not exists | 邮箱不存在 |
| code is null | 验证码为空 |
| code is error | 验证码错误 |
| category is not number | 类别不是数字 |
| account is null | 账号为空 |
| account already exists | 账号已存在 |