Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refget: v2 spec for Range header errors does not align with typical usage #771

Open
davidlougheed opened this issue May 29, 2024 · 0 comments
Labels

Comments

@davidlougheed
Copy link

davidlougheed commented 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.

@davidlougheed 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants