416 Range Not Satisfiable

The requested byte range is outside the resource.

4xx · Client error

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 */<size> 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