- Home
- Tools
- Developer Tools
- HTTP Status Codes
- 524 A Timeout Occurred
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
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 Timeout | The standard code for the same thing at any gateway. |
|---|---|
| 522 Connection Timed Out | The 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.