公共异常响应
大约 1 分钟
请求有误 HttpStatus: 400 Code: 100
请求有误
Example
{
"code": 100,
"msg": "asdadsa param does not exist",
"data": null
}
参数错误 HttpStatus: 400 Code: 101
参数错误
Example
{
"code": 101,
"msg": "operateCount不能为0",
"data": null
}
指定参数对应多个结果 HttpStatus: 400 Code: 102
指定参数对应多个结果
字段名 | 数据类型 | 说明 |
---|---|---|
choices | Array | 指定参数所对应的多个结果 |
Example
GET: /place/星
{
"code": 102,
"msg": "multiple choices",
"data": [
"星世纪",
"星世纪滨湖店",
"星奇多",
"星际传奇合肥万象城店",
"星际传奇合肥高新银泰店"
]
}
未找到结果 HttpStatus: 404 Code: 104
未找到结果
Example
{
"code": 104,
"msg": "not found",
"data": null
}
无权访问 HttpStatus: 403 Code: 200
无权访问
Example
{
"code": 200,
"msg": "forbidden",
"data": null
}
调用者被该功能封禁 HttpStatus: 403 Code: 201
调用者被该功能封禁
Example
{
"code": 201,
"msg": "banned",
"data": null
}
系统繁忙 HttpStatus: 500 Code: 300
系统繁忙
Example
{
"code": 300,
"msg": "busy handling",
"data": null
}