HTTP 416 — Range Not Satisfiable

The client has asked for a portion of the file, but the server cannot supply that portion

When to use it

Use status 416 when this is the correct HTTP response semantic: The client has asked for a portion of the file, but the server cannot supply that portion

Request and response example

GET /protected-resource HTTP/1.1
Host: api.example.com

HTTP/1.1 416 Range Not Satisfiable
Content-Type: application/json

{"error":"Request cannot be completed"}

Related status codes

400, 401, 402, 403

References

MDN · RFC 9110