I use nodeJS and senchalab’s connect middleware (not express!!). I need to catch the static errors (like 404). How do i get these? I tried to check the source, but i could not find a way to pass an error-handler to connect.static.
here is a gist of the general structure i (have to) use:
Based on your routes:
I think you meant this:
Also I want to add that in old connect version 1.x you can use ‘connect.router’, but in 2.x version it was removed and moved to express. If you need useful routing system, use express: