To handle invalid URLs using a 404 Not Found route in Express.js.
If a requested URL does not match any defined route, Express can return a 404 response.