visionmedia/express — Issue #961: How to properly handle 404
Author: anthonywebb
Created: 2012-01-12 17:47:35+00:00
State: open

A little baffled at how to best handle the 404 cases. Here is a gist of a very basic example. https://gist.github.com/1601967

If I fire up the server and hit the index of the server "/" I properly get the 404 message, HOWEVER, in the logs are 2 "got a 404" log entries on the console... odd.

So if I hit the "/login" page I do get the proper page, and corresponding message to the console, BUT, I ALSO get the 404 message to the console too?

Is this the expected behavior? I am using the latest 2.5.4 express on 4.11 but have tried it on other versions of node with the same results.