BillingCDN resources overviewOrigin groupPurgePrefetchReports
Chosen image
Home/CDN/CDN resource options/Custom HTTP status code

Specify custom HTTP status code for the content delivered by the CDN

With this feature, you can apply custom HTTP code to the CDN content. For example, you can send to the end users 403 code instead of certain files. Or set up redirection to another URL. The feature is available in the CDN resource settings and in the "Rules" section.

Activate the Status code option in the Content section of resource or rule settings.

Content section

Specify any HTTP code except  408, 444, 494, 495, 496, 497, 499 codes in the "Status Code" field. You can add only one HTTP code to the field. Specify a URL for a redirect or an HTTP status code text, If you need.

Note: If you activate Status Code in the resource settings, it applies to all CDN content.

If you need to apply HTTP code only to certain files, use this option in the Rules section.

Was this article helpful?

Not a Gcore user yet?

Learn more about our next-gen CDN

Go to the product page