HTTPError.net

The fastest way to diagnose, understand, and fix any HTTP status code

524 A Timeout Occurred

Fault: Server
Unofficial · Cloudflare
TL;DR

A Cloudflare-specific code: the TCP connection succeeded, but the origin took longer than 100 seconds to respond.

Cloudflare connected to the origin but did not receive a timely HTTP response.

Specification note

524 is an unofficial status code used by Cloudflare. It is not part of the HTTP standard or the IANA registry.

What HTTP 524 A Timeout Occurred Means

Cloudflare connected to the origin but did not receive a timely HTTP response.

A Cloudflare-specific code: the TCP connection succeeded, but the origin took longer than 100 seconds to respond.

Common Causes

How to Fix It (For Visitors)

How to Fix It (For Developers/Admins)

How to Troubleshoot Cloudflare Errors

Every Cloudflare error page shows a Ray ID and tells you whether the browser, Cloudflare, or the origin host is failing. To test the origin directly while keeping the correct hostname, bypass Cloudflare with curl:

# Replace 203.0.113.10 with your origin server's IP
curl -svo /dev/null --resolve example.com:443:203.0.113.10 https://example.com/

If this request fails or is slow, the problem is on the origin, not at Cloudflare. Also make sure your firewall, security plugins, and rate limiters allow Cloudflare's IP ranges.

For long-running operations (exports, reports, imports), return 202 Accepted immediately and let the client poll a status URL, or serve the endpoint from a DNS-only (grey-cloud) hostname that Cloudflare does not proxy.

Frequently Asked Questions

What does HTTP 524 A Timeout Occurred mean?

A Cloudflare-specific code: the TCP connection succeeded, but the origin took longer than 100 seconds to respond. In short: Cloudflare connected to the origin but did not receive a timely HTTP response.

Is 524 an official HTTP status code?

No. 524 is not registered in the IANA HTTP Status Code Registry; it is specific to Cloudflare. A client that receives an unrecognized status code treats it like the generic 500 code of its class.

How do I fix a 524 A Timeout Occurred error?

Optimize slow endpoints and queries. Move long tasks to background jobs and return quickly. Use Cloudflare Enterprise to raise the timeout, or a subdomain bypassing the proxy for long requests.

Specification Status

524 A Timeout Occurred is not an official HTTP status code. It is not registered in the IANA HTTP Status Code Registry and is specific to Cloudflare. Other servers and clients may not recognize it.

Source: Cloudflare documentation: 5xx errors →

See all unofficial HTTP status codes →