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 #89

Open
andrewyatz opened this issue Feb 7, 2025 · 0 comments
Labels
invalid This doesn't seem right refget-sequence

Comments

@andrewyatz
Copy link
Collaborator

Creating on behalf of @davidlougheed as the GitHub issue transfer code wasn't working for me.


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right refget-sequence
Projects
None yet
Development

No branches or pull requests

1 participant