Added ability to specify a route for 404 error