Status Codes and HttpResponse Subclasses
Use JsonResponse, redirects, and 404 helpers.
What Status Codes Mean
Every response carries a status code. The number tells the browser if things went well, moved, or broke. 🚦
The Friendly 2xx Codes
Codes in the 2xx range mean success. 200 is the everyday OK, and 201 signals that something new was created.
All lessons in this course
- How a Request Reaches Your View
- The HttpRequest Object
- Returning an HttpResponse
- Status Codes and HttpResponse Subclasses