🕐
524
A Timeout Occurred

Example HTTP Response

HTTP Response
HTTP/1.1 524 A Timeout Occurred
Server: cloudflare
Content-Type: text/html

<html><body>A timeout occurred</body></html>
Common Causes
  • Origin took too long to generate response
  • Large file uploads or downloads timing out
  • Long-running processes exceeding timeout limits
  • Streaming responses that stall
  • Origin server processing very slow
  • Default Cloudflare timeout exceeded (100s free, 600s enterprise)
Technical Details

What does this mean?

Still waiting... and waiting... and waiting! Your origin server accepted the call but then forgot to speak. Cloudflare gave up after waiting politely for way too long.

Technical Definition

Cloudflare completed a TCP connection but the origin did not reply with an HTTP response before timing out.

Code Snippets

Ready-to-use code for returning this HTTP status in your application:

Node.js
// Express.js
app.get('/example', (req, res) => {
  res.status(524).json({
    error: 'A Timeout Occurred',
    message: 'Your error message here'
  });
});

// Native HTTP
const http = require('http');

http.createServer((req, res) => {
  res.writeHead(524, { 'Content-Type': 'application/json' });
  res.end(JSON.stringify({
    error: 'A Timeout Occurred',
    message: 'Your error message here'
  }));
}).listen(3000);