Properly implement error-pages as filters