You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For range headers, it is generally accepted that the Range Not Satisfiable error is to be used if a "document doesn't contain such ranges".
In Refget v2, 400 Bad Request is used for this instead; I believe a 416 would be better because it can then require a Content-Range response header with the total sequence length, allowing clients to subsequently discover valid range queries that can be made and aligning better with the original intent of HTTP range responses.
The text was updated successfully, but these errors were encountered:
davidlougheed
changed the title
refget: v2 spec for Range headers does not align with
refget: v2 spec for Range header errors does not align with typical usage
May 29, 2024
For range headers, it is generally accepted that the
Range Not Satisfiable
error is to be used if a "document doesn't contain such ranges".In Refget v2,
400 Bad Request
is used for this instead; I believe a 416 would be better because it can then require a Content-Range response header with the total sequence length, allowing clients to subsequently discover valid range queries that can be made and aligning better with the original intent of HTTP range responses.The text was updated successfully, but these errors were encountered: