SetErrorPageConfig

Last Updated: Mar 27, 2018

Description

Set custom 404 page redirect for a CDN domain.

Request parameters

Parameters Type Required Example values Description
Action String Yes SetErrorPageConfig

The name of this interface. Value: SetErrorPageConfig

DomainName String Yes www.yourdomain.com

Your CDN domain name.

PageType String Yes default

Error page type. Value:

  • default: default page
  • charity: public welfare page
  • other: custom page

CustomPageUrl String No http://www.macaron.org.cn/notfound.html

URL of the custom page for redirect after an error occurs (complete path under the CDN domain name).

Return parameters

Parameters Type Example values Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request

Example

Request example

  1. http://cdn.aliyuncs.com/?Action=SetErrorPageConfig
  2. &DomainName=www.macaron.org.cn
  3. &CustomPageUrl=http://www.macaron.org.cn/notfound.html
  4. &PageType=other
  5. &<Public request parameter>

Normal return example

JSON format

  1. {
  2. "RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
  3. }

Exception return example

JSON format

  1. {
  2. "Code":"InternalError",
  3. "HostId":"cdn.aliyuncs.com",
  4. "Message":"The request processing has failed due to some unknown error.",
  5. "RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
  6. }

Error code

For more information, see Error code of this product.

Thank you! We've received your feedback.