返回码说明
统一返回json数据,格式如下:
{
"status": 200, //状态码
"success": true,
"message": null, //正确时不会返回该字段 错误消息
"data": null //正确时不会返回该字段 错误数据
}
- 返回状态码
状态码 | 释义 | 解决办法 |
---|---|---|
200 | success | |
400 | request fail | 请求错误,检查请求方式、参数等 |
500 | request exception | 检查必须参数是否正确,尝试重新请求 |
1000 | repeat msgid | 请求消息id重复。请使用唯一消息id |
1001 | wrong sign | 签名错误,请验证签名 |
1002 | not found auth info | 未找到授权信息 |
1003 | ip limit | ip限制,请设置iP白名单 |
1004 | parameter error | 请求参数错误,请检查参数 |
1005 | The request is invalid,timestamp error | 时间戳使用当前请求毫秒时间戳 |
1006 | The request is invalid,express code error | 快递公司编号使用快递公司列表中的编号 |