Error Pages

How Django Processes Error Pages

Which Error Pages

Error pages to keep in mind for your website are:

  • 404 - Page not found (user visits a non existent URL).
  • 500 - Server error (uncaught exceptions in your code).
  • 403 - Forbidden (user doesn't have permission to access a page).
  • 400 - Bad request (malformed input or invalid request).

You can also create others (401 unauthorized, 502 gateway errors), but the above four are the most used in Django projects.