What is the difference between Cloudflare 522 and 524?
A 522 is a connection timeout. A 524 means the origin connection succeeded, but the origin did not return a response in time.
Cloudflare · HTTP 524
Trace Cloudflare 524 to an origin that accepts connections but does not return HTTP headers in time. Inspect application latency, database waits, and long-running work.
Origin / Application
Paste a captured HTTP response or enter a status and headers. Only the status and response headers are sent; common credential headers are filtered first.
Diagnostic report
Error code / name
Fault domain
Origin / ApplicationCloudflare established an origin connection, but the application did not begin its HTTP response before the configured response deadline. Slow database queries and synchronous jobs are common causes.
Cloudflare established an origin connection, but the application did not begin its HTTP response before the configured response deadline. Slow database queries and synchronous jobs are common causes.
Client -> Cloudflare Edge -> TCP/TLS OK -> Origin accepts request -> no HTTP headers before deadline -> Xcurl -sS -I -w 'connect=%{time_connect} starttransfer=%{time_starttransfer} total=%{time_total}\n' --max-time 120 https://example.com/healthexport async function POST(request: Request) {
const jobId = await enqueueReport(await request.json());
return Response.json({ jobId }, { status: 202 });
}SteadyNode records response latency across scheduled checks and translates gateway timeouts into origin-side clues, helping teams catch slow endpoints before they exceed edge deadlines.
No credit card required.
Start for freeA 522 is a connection timeout. A 524 means the origin connection succeeded, but the origin did not return a response in time.
First measure application and dependency latency. Raise a timeout only when the longer operation is expected and all upstream limits support it.