Custom Error Page
This setting is available for all resource types.
Method | URL |
---|---|
PUT | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_id} |
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
custom_error_pages_status | Determines whether custom error pages are enabled or not. | Boolean | Yes |
custom_error_pages | An array defining custom error pages. | Array | Yes |
custom_error_pages.status_code | Specifies the HTTP status code in the range of 400-599. | Integer | Yes |
custom_error_pages.url | Represents the URL to which the redirection will be made for the specified status code. | String, URL | Yes |
custom_error_pages.redirect_status_code | Specifies the supported redirection status code, such as 301 or 302. | Integer | Yes |
Payload
{
"resource_uuid":"*****-***-***-***",
"custom_error_pages_status":true,
"custom_error_pages": [
{
"status_code": 404,
"url": "https://my.domain.com/404.html",
"redirect_status_code": "302"
}
]
}