Skip to the content

524 A Timeout Occurred

Cloudflare connected to the origin server, but the origin took too long to send a response. Typical for requests that run long.

Class
Unofficial codes. Not in the IANA registry. These are made up by one piece of software and mean nothing outside it, but they turn up in logs and on error pages often enough.
Used by
Cloudflare

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

What causes it

When the connection is fine and the answer doesn't come within Cloudflare's limit for waiting: a large export, a report, a slow database query, or a server that is short of resources.

What to do about it

As the owner: make the request shorter, or take the work out of the request altogether. Start it in the background, answer straight away and let the page ask for the result. That is Cloudflare's own advice too.

The logs of the origin show how long the request really takes. Visitors can only try again later.

Not to be confused with

504 Gateway TimeoutThe standard code for the same thing at any gateway.
522 Connection Timed OutThe connection itself could not be made in time.

All codes are on the list of HTTP status codes, which can be searched by number and by word.

See all 12