Select the G-Core Platform

G-Core Cloud and Edge Platform
Go to G-Core Cloud →
  • Edge Delivery (CDN)
  • DNS with failover
  • Global Cloud Instances
  • Managed Kubernetes
  • AI Infrastructure
  • Edge Security (DDOS+WAF)
  • FaaS
  • Streaming
  • Object Storage
  • ImageStack (Optimize and Resize)
  • Edge Compute (Coming soon)
G-Core Hosting
Go to G-Core Hosting →
  • VPS Hosting
  • Dedicated Servers
  • SSL Certificates

New Feature: Status Code

With the new Status Code option, you can customize a given HTTP code for the CDN content. The feature is available in the CDN resource Advanced Settings and in the Rules section. The rules can be applied to all content and it’s also possible to set up response code only for certain files or file types.

You can specify a URL to redirect to (for codes 301, 302, 303, 307, and 308) or the response text (for other codes). Code 444 stops processing without sending a response header. Both redirect URL and response text can contain variables. A redirect URL can also be specified as a URI local to this server, in which case the full URL is formed according to the request scheme and server name and port directives. A URL for temporary redirect with the code 302 can be specified as the sole parameter.

New Feature: Status Code

The example above shows how you can restrict access to the files with .mp3 extension returning response code 404 instead.

Share this article

Related news articles

Subscribe to a useful newsletter

Favorable offers and important news once a month. No spam.