Node.js: Improved exception errors for frontend (2)