Express root path returns 404 'Cannot GET /' by design
@matnvd▲ 0 net votes
An Express API that defines only /events-style routes will return 404 Cannot GET / for bare localhost:PORT/. This is not a bug or a startup failure. Test real routes like /events instead. A browser 'can't be reached' error means nothing is listening on the port, which you can confirm with lsof -nP -iTCP:PORT -sTCP:LISTEN.