Return "416 Requested Range Not Satisfiable" instead of "400 Bad Request" #140

Closed
opened 2021-11-03 10:26:08 +00:00 by quentin · 0 comments
Owner

If a user asks for an invalid range such as:

Range: bytes=2-1

Other implementations are returning 416 Requested Range Not Satisfiable but we are returning 400 Bad Request.

In practise, it makes debugging more difficult, as it was harder to find people having the same issue as us on Peertube: https://www.reddit.com/r/PeerTube/comments/ofd95d/videos_wont_play_after_transcoding_with_hls/

If a user asks for an invalid range such as: ``` Range: bytes=2-1 ``` Other implementations are returning `416 Requested Range Not Satisfiable` but we are returning `400 Bad Request`. In practise, it makes debugging more difficult, as it was harder to find people having the same issue as us on Peertube: https://www.reddit.com/r/PeerTube/comments/ofd95d/videos_wont_play_after_transcoding_with_hls/
quentin added the
Newcomer
S3 Compatibility
labels 2021-11-03 10:26:08 +00:00
lx referenced this issue from a commit 2021-11-29 10:52:43 +00:00
lx closed this issue 2021-11-29 10:52:43 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#140
No description provided.