codeforamerica / intake

A Django project behind the Clear My Record website
https://clearmyrecord.codeforamerica.org
MIT License
49 stars 23 forks source link

Custom error pages for 404, 403, 400, and 500 #1393

Closed hartsick closed 3 years ago

hartsick commented 3 years ago

Add custom error pages

Django allows you to create pure-HTML error pages for 404 (not found), 400 (bad request), 403 (unauthorized), and 500 (error) status codes. Partial documentation can be seen here.

This implementation assumes no other part of the app has been loaded, which required hardcoding of the home URL (/) and the copying of relevant CSS to each file (a copied and stripped-down version of our maintenance.html).

[Finishes #171863803]