416
HTTPERRORNotable4xx Client ErrorHIGH confidence

Range Not Satisfiable

Production Risk

Low. This typically happens with clients that perform streaming or resumable downloads. A robust client should be able to handle this by either restarting the download or correcting its range.

What this means

The range specified by the 'Range' header field in the request cannot be fulfilled. It's possible that the range is outside the size of the target URI's data.

Why it happens
  1. 1A client requests a byte range that is beyond the end of the file (e.g., bytes 1000-2000 for a 500-byte file).
  2. 2The value in the 'Range' header is malformed or invalid.
  3. 3The server does not support range requests for the target resource.
How to reproduce

A download manager tries to resume a download, but provides an incorrect starting byte that is larger than the file itself.

trigger — this will error
trigger — this will error
GET /file.zip HTTP/1.1
Host: example.com
Range: bytes=5000-

expected output

HTTP/1.1 416 Range Not Satisfiable
Content-Range: bytes */500

Fix

Request a Valid Range

WHEN Making a range request.

Request a Valid Range
Ensure the requested range is within the bounds of the resource's size.

Why this works

Client-Side Correction

Version notes

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All HTTP errors