Building a scalable Node.js Express app
Gerard Rovira
1.7K14
Great article!
Just a semantic note. I would use 400 error code on user’s input validation errors, 404 when service can’t find a resource and 500 when service crashes (for instance, DB is not available)