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.

Mô tả

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.

Khi bạn thấy mã này

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

Cách khắc phục

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

Mô tả

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

Khi bạn thấy mã này

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

Cách khắc phục

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

Sự khác biệt chính

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.

Khi nào dùng cái nào

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.

Tìm hiểu thêm