Express/connect middleware to handle 405 errors