@http · HTTP status codes, explained HTTP/1.1 416 Range Not Satisfiable ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4xx · Client error The requested byte range is outside the resource. WHAT IT MEANS ──────────────────────────────────────────────────────────── None of the byte ranges in the request's Range header fit inside the resource. The server should send Content-Range: bytes */ so the client knows the real size. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → Resuming a download that has already finished. → A file that got smaller since the client last fetched it. → A client bug calculating ranges. HOW TO FIX IT ──────────────────────────────────────────────────────────── → Use the size in Content-Range to request a valid range, or download from the start. → Send If-Range with an ETag, so a changed file returns the full 200. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/1.1 416 Range Not Satisfiable Content-Range: bytes */146515 Content-Length: 0 related 206 Partial Content   200 OK   412 Precondition Failed spec RFC 9110 §15.5.17 https://www.rfc-editor.org/rfc/rfc9110#section-15.5.17 web https://athttp.com/416 ← curl athttp.com/415 curl athttp.com/417 →