华为乾坤-查询楼层楼栋列表:响应示例
响应示例
返回状态码为200:返回操作是否成功
HTTP/1.1 200 OK { "errorCode": 0, "errorMsg": null, "totalSize": 1, "data": [ { "name": "N5-1", "remark": "1", "posX": 1932.0, "posY": 600.0, "parentObjId": "0cb7cebc-3ed5-4c1f-848d-7dd797d5c386", "regionType": 5, "objId": "5aed00a8-d163-4519-847f-d89cfc482a8c", "tenantId": "efabceb476d7416291c7470270237613", "siteId": "4d7fafd6-5ea9-49b9-a295-f95a91b1f72c" } ] }
返回状态码为400:参数错误
HTTP/1.1 400 Bad Request Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
返回状态码为403:URL鉴权
HTTP/1.1 403 Forbidden Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
返回状态码为404:rest接口没找到
HTTP/1.1 404 Not Found Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
返回状态码为406:流控限流
HTTP/1.1 406 Not Acceptable Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
返回状态码为500:默认ServiceException异常码,应用内部错误
HTTP/1.1 500 Internal Server Error Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
返回状态码为502:网关错误
HTTP/1.1 502 Bad Gateway Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
返回状态码为503:服务不可用
HTTP/1.1 503 Service Unavailable Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
返回状态码为504:表示时间超时,总线超时时间300s
HTTP/1.1 504 Gateway Timeout Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive