华为乾坤-查询指定区域的背景图:响应示例

时间:2025-02-17 11:36:54

响应示例

返回状态码为200:接口执行成功

HTTP/1.1 200 OK
{
  "errorCode": 0,
  "errorMsg": null,
  "imgData": {
    "tenantId": null,
    "bgImageName": "test.jpg",
    "fileSize": 389,
    "bgImageWidth": 1515.0,
    "bgImageHeight": 343.0,
    "totalShardCount": 1,
    "currentShardIndex": 0,
    "shardContent": "/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDACgcHiMeGSgjISMt"
  }
}

返回状态码为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
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001893197937.html