Baidu AI Cloud
中国站

百度智能云

CDN

Query the Custom Error Page

This interface is used to query custom error pages.

Method Path Description
GET /v2/domain/{domain}/config?errorPage Query custom error redirection page

domain: CDN accelerated domain name.

Response body

Parameter Type Description
errorPage list type, element type is ErrorPage Detailed configurations of custom error redirection page

Response code (Http Status Code)

HTTP Status Code Description
200 Success

Request example

GET /v2/domain/myself.baidu.com/config?errorPage HTTP/1.1 
Host: cdn.baidubce.com 

Response example

HTTP/1.1 200 OK 
Content-Type: application/json; charset=utf-8 
Transfer-Encoding: chunked 

{ 
    "errorPage":[ 
        { 
            "code":510, 
            "redirectCode":302, 
            "url":"/customer_404.html" 
        }, 
        { 
            "code":403, 
            "url":"/custom_403.html" 
        } 
    ] 
} 
Previous
Set the Custom Error Page
Next
Set HTTPS Acceleration