- Via Resource settings : the custom code will be applied to all the CDN resource’s content -Via Rules : the custom code will be applied only to certain files
1. In the Gcore Customer Portal, navigate to CDN.2. Click the CNAME of the required CDN resource to open Resource settings.
3. Click the Content section to open nested options.4. Click Status code.5. Enable the Set status code toggle.
6. Specify the desired HTTP status code in the field.7. (Optional) Specify a URL for a redirect or an HTTP status code text.8. (Optional) Enable a schedule. In the expanded block, set the time when the custom status code will be applied, as well as the time zone.9. Save changes.
That’s it! The custom code will be applied to all files delivered via the CDN.


CautionYou can’t specify 408, 444, 494, 495, 496, 497, or 499 codes.
