I got this idea from https://www.b-list.org/weblog/2023/dec/04/python-http-status-codes/ . I always liked DRF's status and I think it makes the code easier to read. Python's http version of the same thing is not looking nice as DRF's in my opinion (.HTTP_200_OK vs .OK), but still an improvement over using directly the numeric codes.
I got this idea from https://www.b-list.org/weblog/2023/dec/04/python-http-status-codes/ . I always liked DRF's status and I think it makes the code easier to read. Python's
http
version of the same thing is not looking nice as DRF's in my opinion (.HTTP_200_OK
vs.OK
), but still an improvement over using directly the numeric codes.