mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-08 21:55:02 -05:00
This prevents a situation where we get a cached error (e.g. a 404) back from the pagecache and then the error_mapper (called by the ErrorDocuments middleware) sees that status code and redirects the app to the ErrorController which then re-renders the error and inserts it into the pagecache at the end of the request.