响应状态码
在调用旁路推流 RESTful API 过程中,你可能会收到如下状态码:
- 如果状态码为 2XX,表示请求成功。
- 如果状态码不为 2XX,则请求失败。你可以根据对应的响应 Body 中的
message
或reason
字段内容排查问题。响应 Body 中的具体字段参考各 API 文档。
状态码 | 可能的 message 或 reason 字段内容 |
---|---|
200 OK | / |
400 Bad Request |
|
401 Unauthorized | Invalid authentication credentials. |
403 Forbidden | No valid permission to use this function. Contact us. |
404 Not Found | Resource is not found and destroyed. |
409 Conflict | Resource with the same name has already existed. Use the existing resource, otherwise delete it and create a new resource. |
429 Too Many Requests |
|
500 Unknown | Internal errors. Contact us for troubleshooting. |
501 Not Implemented | The method requested has not been implemented. |
503 Service Unavailable |
|
504 Gateway Timeout | Gateway timeout. Check whether the resource is created, if not, re-create a new resource. |