Update app.js

Update exception response in register