200
表示成功。4xx
表示根据提供的信息触发接口请求发生了失败的错误。5xx
表示珊瑚开放平台出现错误。状态码 | 描述 |
---|---|
200 | 正常 |
400 | 请求未被接受,通常是由于验证或缺少参数 |
404 | 请求的资源不存在 |
429 | 接口限流 |
500 | 平台问题 |
预期 | 信息 |
---|---|
权限不足 | {"code": 500, "message": "暂无权限"} |
字段缺失 | {"code": 400, "message": "字段[endTime],结束时间参数必填"} |
接口不存在 | {"code": 404, "message": "The interface does not exist"} |
服务不存在 | {"code": 503, "message": "Can not find server in nacos registry"} |
接口限流 | {"code": 429, "message": "Flow restriction, please retry later"} |