错误码
通用json返回格式
其中code为200表示调用成功,data为具体的接口返回值,格式仍然为json格式,具体见接口定义。其他的code均表示失败,msg为具体错误原因。业务功能错误原因请参照接口返回的具体错误msg
{
"code": 200,
"success": true,
"msg":null,
"data":"..."
}
业务错误码 700001 - 799999
请求错误401-450
| 错误码 |
错误msg |
| 401 |
uri parse error |
| 402 |
appkey not find in request |
| 403 |
api httpMethod not supported |
| 404 |
sign not find in request |
| 405 |
params in sign not find in request |
| 406 |
sign check fail |
| 407 |
app api in adapt error |
| 408 |
request timeout |
配置错误451-499
| 错误码 |
错误msg |
| 451 |
sourceName config not existed |
| 452 |
appkey config not existed |
| 453 |
app api config not existed |
| 454 |
app api in out adapter config not existed |
| 455 |
app api sign checker config not existed |
| 456 |
app api biz component config not existed |
| 457 |
api service not found |
| 458 |
api service param type error |
| 459 |
api service type error |
| 460 |
api service invoke error |
| 461 |
api service exception |
| 462 |
api service exception |
系统内部错误5XX
| 错误码 |
错误msg |
| 500 |
internal system error |
| 501 |
unknown error |
常量
设备操作
| 错误码 |
错误msg |
| 1 |
绑定设备 |
| 2 |
解绑设备 |
| 3 |
修改设备信息 |
| 4 |
设备上线 |
| 5 |
设备下线 |
设备类型
| 错误码 |
错误msg |
| 1 |
顶灯 |
| 2 |
车内摄像头 |
| 3 |
车外摄像头 |
| 4 |
计价器 |