查询自定义错误页面
更新时间:2019-07-22
本接口用于查询自定义的错误页面。
Method | Path | 说明 |
---|---|---|
GET | /v2/domain/{domain}/config?errorPage | 查询自定义的错误跳转页面 |
domain: CDN加速域名
响应体(Response Body)
参数 | 类型 | 说明 |
---|---|---|
errorPage | list类型,元素类型为ErrorPage | 自定义错误跳转页面的详细配置 |
响应码 (Http Status Code)
HTTP Status Code | 说明 |
---|---|
200 | 成功 |
请求示例
Plain Text
1GET /v2/domain/myself.baidu.com/config?errorPage HTTP/1.1
2Host: cdn.baidubce.com
响应示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json; charset=utf-8
3Transfer-Encoding: chunked
4
5{
6 "errorPage":[
7 {
8 "code":510,
9 "redirectCode":302,
10 "url":"/customer_404.html"
11 },
12 {
13 "code":403,
14 "url":"/custom_403.html"
15 }
16 ]
17}