What HTTP 416 means
The client asked for a part of a file that doesn’t exist, typically a range starting past the end. It often happens when resuming a download that has already completed, or when the file changed size on the server.
How to fix a 416 error
-
Delete the partial file and download again, or check
Content-Range: bytes */<size>in the response for the real size.
Retrying
No. Fix the request first; sending it again unchanged will get the same response.
Example response
HTTP/1.1 416 Range Not Satisfiable
Date: Wed, 21 Oct 2026 10:30:00 GMT
Content-Range: bytes */146515
How to return 416
res.status(416).json({ error: 'Range Not Satisfiable' });
from fastapi import HTTPException
raise HTTPException(status_code=416, detail="Range Not Satisfiable")
http.Error(w, http.StatusText(http.StatusRequestedRangeNotSatisfiable), http.StatusRequestedRangeNotSatisfiable)
location /private/ {
return 416;
}
Related status codes
- 206 Partial Content : The server is returning only the byte range the client asked for.
- 200 OK : The request succeeded and the response contains the result.
Other 4xx status codes
400 Bad Request · 401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 405 Method Not Allowed · 406 Not Acceptable · 407 Proxy Authentication Required · 408 Request Timeout · 409 Conflict · 410 Gone · 411 Length Required · 412 Precondition Failed · 413 Content Too Large · 414 URI Too Long · 415 Unsupported Media Type · 417 Expectation Failed · 418 I’m a Teapot · 421 Misdirected Request · 422 Unprocessable Content · 423 Locked · 424 Failed Dependency · 425 Too Early · 426 Upgrade Required · 428 Precondition Required · 429 Too Many Requests · 431 Request Header Fields Too Large · 444 No Response · 451 Unavailable For Legal Reasons · 499 Client Closed Request
See the full list of HTTP status codes.
Sources
Spotted a mistake? Email hello@devtoolsmith.com and we’ll fix it.
Frequently asked questions
What does HTTP 416 Range Not Satisfiable mean?
HTTP 416 Range Not Satisfiable means the byte range in the Range header can’t be served. The client asked for a part of a file that doesn’t exist, typically a range starting past the end. It often happens when resuming a download that has already completed, or when the file changed size on the server.
How do I fix HTTP 416?
Delete the partial file and download again, or check Content-Range: bytes */<size> in the response for the real size.