On this page
Record the error
Save the exact status code, URL, UTC timestamp and Ray ID. Compare the homepage with the affected path and test from another network.
Interpret the code
521 usually points to a refused origin connection. 522 indicates an origin connection timeout, 523 an unreachable origin and 524 a slow origin response. 525 concerns the TLS handshake and 526 certificate validation. Use the SSL checker for the public certificate.
Prepare a support message
Ask the host to match the timestamp and Ray ID to origin logs and verify the expected destination.
521 · Connection refused
Check that the origin web server is listening and that its firewall allows Cloudflare’s connections. Ask your hosting provider to check the origin logs.
522 · Connection timed out
Check whether the origin is reachable and responding. Ask your host to inspect firewall drops, connection limits and load at the recorded time.
525 · TLS handshake failed
Ask your host to check the origin TLS listener and certificate configuration. Test the public certificate separately and review the Cloudflare-to-origin connection.
526 · Invalid origin certificate
Check that the origin certificate is current, trusted by Cloudflare and covers the origin hostname. Verify the certificate chain and the Cloudflare SSL/TLS mode.