I think this is a feature lacking in the original Django. The reason - it
improves readability (no _magic numbers_), doesn't require exact
remembering all the codes, and gives a list of default statuses.
--
Ticket URL: <https://code.djangoproject.com/ticket/34306>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => wontfix
* component: Utilities => HTTP handling
Comment:
As per 2fcafd169b5fcf4bb6711ca8aa4d59d80225ec7a (#26546), you can use
Python's `http.HTTPStatus`.
--
Ticket URL: <https://code.djangoproject.com/ticket/34306#comment:1>