Use the app.router before the error handling.