HTTP 5xx

524 A Timeout Occurred

A Cloudflare-specific code: Cloudflare connected to the origin but it did not respond before the timeout.

5xx Server error

What causes it

  • A long-running request on the origin that exceeds Cloudflare's response timeout (100s by default).

How to fix it

Speed up the slow endpoint, move long jobs to a background queue, or raise the timeout on an Enterprise plan.

Example response

A typical raw HTTP response a client receives for a 524, with the headers this code is defined around.

HTTP/1.1 524 A Timeout Occurred
Content-Type: text/html; charset=utf-8

Know before your visitors do.

Sentinel checks your site around the clock from multiple regions and alerts you the moment it starts returning a 5xx error, so you can fix it before it costs you.