starlette icon indicating copy to clipboard operation
starlette copied to clipboard

feat: implement rfc9110 http status names

Open mbeijen opened this issue 7 months ago • 0 comments

Summary

rfc9110 obsoletes the earlier rfc 7231. This document also includes some status codes that were previously only used for WebDAV and assigns more generic names to these status codes.

ref: https://www.rfc-editor.org/rfc/rfc9110.html#name-changes-from-rfc-7231

The status code constants are updated to reflect the new naming and the old constants are kept for backwards compatibility

  • HTTP_413_CONTENT_TOO_LARGE, previously HTTP_413_REQUEST_ENTITY_TOO_LARGE
  • HTTP_414_URI_TOO_LONG, previously HTTP_414_REQUEST_URI_TOO_LONG
  • HTTP_416_RANGE_NOT_SATISFIABLE, previously HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE
  • HTTP_422_UNPROCESSABLE_CONTENT, previously HTTP_422_UNPROCESSABLE_ENTITY

Checklist

  • [ ] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • [ ] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [ ] I've updated the documentation accordingly.

mbeijen avatar May 18 '25 16:05 mbeijen