Response-specific causes
The response code helps identify which origin behavior or CDN setting to investigate.500 Internal Server Error: Check the origin application and server logs for failures.502 Bad Gateway: Check for an invalid origin response, TLS or Server Name Indication (SNI) mismatch, or connection failure.503 Service Unavailable: Check whether the origin is unavailable or overloaded.504 Gateway Timeout: Check for an origin connection or read timeout.
Gcore service status
If 5xx responses increase sharply or end users report widespread failures, the Status Page lists incidents or maintenance that affect:- CDN
- Other Gcore services used as an origin (Object Storage, VPS, Dedicated Server, or Cloud)
Origin server availability
Request content directly from the origin and inspect the response headers. For an HTTP origin that uses name-based virtual hosting, send the expected Host header:--resolve to connect to the origin IP while preserving the hostname for the Host header and TLS SNI:
504 response can occur when the origin exceeds the CDN timeout defaults — 5 seconds to establish a connection and 30 seconds between successive reads. On standard plans, custom timeouts can only reduce these limits, so they cannot resolve a slow origin; increasing the limits requires an Enterprise plan and assistance from Gcore Support.
If access to the origin is restricted by IP or a DDoS Protection service, allowlist CDN edge IPs. Retrieve the current public IP list:
CDN resource settings
Incorrect CDN resource settings can also cause HTTP 5xx errors. Review the common cases below.Incorrect Origin pull protocol
In the resource settings, select an Origin pull protocol that matches the protocol the origin uses. The Origin pull option controls which scheme the CDN uses when requesting content from the origin. For an HTTPS origin behind Cloudflare or CloudFront, keep Origin pull protocol set to HTTPS and configure Change SNI hostname with the hostname expected by that service. Select HTTP only when the origin is configured to accept unencrypted HTTP requests.Incorrect Host header
Enable Change Host header and set a value that matches the origin or the host configured on the origin. The Host header option controls which virtual host the origin uses. After changing Origin pull protocol, Change SNI hostname, or Change Host header, click Save changes before retesting the request.5xx response tracking and logs
The Response codes report tracks 5xx responses for CDN resources.1
Open CDN
In the Gcore Customer Portal, select CDN.
2
Open CDN statistics
Navigate to Reports → Statistics.
3
View response codes
Select Response codes.
traceparent header from the CDN response if possible — it uniquely identifies the request and allows Gcore Support to locate it in Gcore systems. See Traceparent header for troubleshooting.