Skip to content

HTTPStatusCode enum is missing registered values #305

@djones6

Description

@djones6

The public enum HTTPStatusCode is missing a number of values that are registered with IANA:
https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

The ones that I spotted are:

  • 423: Locked
  • 425: Too Early
  • 426: Upgrade Required

There may be others missing - it would be worth comparing against the IANA list.

Whilst adding cases to this public enum is technically a breaking change, we do not realistically expect someone to exhaustively switch over it (ie. without a default case), and so we feel this is a reasonable change to make as a bug fix.

This change needs to be made to both Kitura-net and Kitura-NIO.

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