Open ChandlerSwift opened 3 years ago
PR #130 includes 404 handlers for teams and attacks. I wasn't sure what situations might cause 401s, 403s, or other 404s so I chose not to add Flask app wide handlers since they wouldn't have any helpful information in them. Are there cases where these other errors occur?
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.