Skip to content

net/http: StatusRequestedRangeNotSatisfiable should be StatusRangeNotSatisfiable #69540

Closed
@cookiengineer

Description

@cookiengineer

Go version

1.23+

Output of go env in your module/workspace:

Doesn't matter for this bug report

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 to StatusRangeNotSatisfiable, and the String() method should return the correct string.

What did you see happen?

...

What did you expect to see?

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions