The RFC 9110 states that unsatisfiable Range request / Content-Range response should be answered with 416 Range Not Satisfiable.
In the current go HEAD, this status is encoded as 416 Requested Range Not Satisfiable.
In order to stay RFC compliant, The const StatusRequestedRangeNotSatisfiable should be renamed to StatusRangeNotSatisfiable, and the String() method should return the correct string.
Go version
1.23+
Output of
go env
in your module/workspace:What did you do?
The RFC 9110 states that unsatisfiable Range request / Content-Range response should be answered with
416 Range Not Satisfiable
.In the current go HEAD, this status is encoded as
416 Requested Range Not Satisfiable
.In order to stay RFC compliant, The
const StatusRequestedRangeNotSatisfiable
should be renamed toStatusRangeNotSatisfiable
, and theString()
method should return the correctstring
.What did you see happen?
...
What did you expect to see?
...