In many cases, when a 401, 403, or 404 should be presented, a non-formatted and not-very-helpful error page is shown.
For example, here's an attack that doesn't exist:

These should be formatted nicely, and contain helpful text where possible. Using get_or_404 may get us a lot of the way there, in combination with a nice 404 page.
In many cases, when a 401, 403, or 404 should be presented, a non-formatted and not-very-helpful error page is shown.
For example, here's an attack that doesn't exist:

These should be formatted nicely, and contain helpful text where possible. Using
get_or_404may get us a lot of the way there, in combination with a nice 404 page.