0Pricing
Django Academy · Lesson

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

  1. How a Request Reaches Your View
  2. The HttpRequest Object
  3. Returning an HttpResponse
  4. Status Codes and HttpResponse Subclasses
← Back to Django Academy