Added functionality for default 404 routing.