HTTP

HTTP 206 Partial Content vs 524 A Timeout Occurred

HTTP 206 (Partial Content) is a 2xx Success response, while 524 (A Timeout Occurred) is a 5xx Server Error response. 206 indicates that the server is delivering only part of the resource due to a Range header sent by the client. Used for resumable downloads and video streaming. In contrast, 524 means that cloudflare-specific. A TCP connection was established but the origin didn't respond with an HTTP response in time.

Description

The server is delivering only part of the resource due to a Range header sent by the client. Used for resumable downloads and video streaming.

When You See It

During video streaming, large file downloads, or when resuming interrupted downloads.

How to Fix

No fix needed. This is normal behavior for range requests.

Description

Cloudflare-specific. A TCP connection was established but the origin didn't respond with an HTTP response in time.

When You See It

When a request to the origin takes longer than Cloudflare's 100-second timeout.

How to Fix

Optimize slow endpoints. Move long-running tasks to background jobs.

Key Differences

1.

206 is a 2xx Success response, while 524 is a 5xx Server Error response.

2.

HTTP 206: The server is delivering only part of the resource due to a Range header sent by the client. Used for resumable downloads and video streaming.

3.

HTTP 524: Cloudflare-specific. A TCP connection was established but the origin didn't respond with an HTTP response in time.

4.

You encounter 206 when during video streaming, large file downloads, or when resuming interrupted downloads.

5.

You encounter 524 when when a request to the origin takes longer than Cloudflare's 100-second timeout.

When to Use Which

For 206 (Partial Content): No fix needed. This is normal behavior for range requests. For 524 (A Timeout Occurred): Optimize slow endpoints. Move long-running tasks to background jobs.

Learn More