You need to enable JavaScript to run this app.
导航
返回结构
最近更新时间:2024.07.01 11:31:25首次发布时间:2022.07.28 21:39:27

本文档介绍了火山引擎多云CDN服务是如何响应 API 请求的。

响应状态码

API 请求成功时,HTTP 响应状态码是 200。
API 请求失败时,会出现以下任意一个情况:

  • HTTP 响应状态码是 4xx 或 5xx。
  • 响应正文的 ResponseMetadata 结构体包含 Error 字段。

请求成功的响应示例

{
	"ResponseMetadata": {
		"RequestId": "2021041510110201022510703416005FB0",
		"Action": "DescribeCloudAccount",
		"Version": "2022-03-01",
		"Service": "mcdn",
		"Region": "cn-north-1"
	},
	"Result": {...}
}

请求失败的响应示例

{
	"ResponseMetadata": {
		"RequestId": "2021041510110201022510703416005FB0",
		"Action": "DescribeCloudAccount",
		"Version": "2022-03-01",
		"Service": "mcdn",
		"Region": "cn-north-1",
		"Error": {
			"Code": "ResourceNotFound",
			"Message": "resource is not found"
		}
	}
}