404: TypeError: Cannot read property 'send' of undefined