Commit 13222e45 by ersel-ionova Committed by Tom Christie

Make status_code documentation more readable. (#5400)

* Make status_code documentation more readable.

* Update status-codes.md
parent e2b5cef5
...@@ -6,7 +6,7 @@ source: status.py ...@@ -6,7 +6,7 @@ source: status.py
> >
> — [RFC 2324][rfc2324], Hyper Text Coffee Pot Control Protocol > — [RFC 2324][rfc2324], Hyper Text Coffee Pot Control Protocol
Using bare status codes in your responses isn't recommended. REST framework includes a set of named constants that you can use to make more code more obvious and readable. Using bare status codes in your responses isn't recommended. REST framework includes a set of named constants that you can use to make your code more obvious and readable.
from rest_framework import status from rest_framework import status
from rest_framework.response import Response from rest_framework.response import Response
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment