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.
Descrição
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.
Quando você o vê
During video streaming, large file downloads, or when resuming interrupted downloads.
Como corrigir
No fix needed. This is normal behavior for range requests.
Descrição
Cloudflare-specific. A TCP connection was established but the origin didn't respond with an HTTP response in time.
Quando você o vê
When a request to the origin takes longer than Cloudflare's 100-second timeout.
Como corrigir
Optimize slow endpoints. Move long-running tasks to background jobs.
Diferenças principais
206 is a 2xx Success response, while 524 is a 5xx Server Error response.
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.
HTTP 524: Cloudflare-specific. A TCP connection was established but the origin didn't respond with an HTTP response in time.
You encounter 206 when during video streaming, large file downloads, or when resuming interrupted downloads.
You encounter 524 when when a request to the origin takes longer than Cloudflare's 100-second timeout.
Quando usar qual
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.