服务端处理成功的请求,响应的HTTP状态码均为200;接口调用出错后,异常返回的HTTP状态码为 4xx 或 5xx。
返回结果固定为:
HTTP/1.1 200 OK
Content-Type: application/json
{
"ResponseMeta": {
"RequestId": "CixgpmAFOYcAAAAAAAAAAw",
"HostId": "vod.streamlakeapi.com"
"ErrorCode": "",
"ErrorMessage": ""
},
"ResponseData": {
"TaskId": "Ta177889"
}
}
HTTP/1.1 404 NOT FOUND
Content-Type: application/json
{
"ResponseMeta": {
"RequestId":"CixgpmAFOYcAAAAAAAAAAw",
"ErrorCode":"NotFound.TaskId",
"ErrorMessage":"The Task not exist"
}
}