Add RFC 9110 status code constants

Merged
MB
4mo ago
+63-10

RFC 9110 (HTTP Semantics) obsoletes RFC 7231 (which obsoletes 2616) and RFC 7238, and renamed several status phrases. This adds the new constant names and phrases, keeping the old constant names as aliases for backwards compatibility:

  • REQUEST_ENTITY_TOO_LARGE → CONTENT_TOO_LARGE (413)
  • REQUEST_URI_TOO_LONG → URI_TOO_LONG (414)
  • REQUESTED_RANGE_NOT_SATISFIABLE → RANGE_NOT_SATISFIABLE (416)
  • UNPROCESSABLE_ENTITY → UNPROCESSABLE_CONTENT (422)

Ported from a fix I originally carried in the httpxyz fork.