2 ms·
I want to recommend a package that I really love: https://github.com/shutterstock/node-common-errors https://github.com/shutterstock/node-common-errors This i
by sida 12y ago
I want to recommend a package that I really love:
https://github.com/shutterstock/node-common-errors https://github.com/shutterstock/node-common-errors
This is one of the most useful packages that I have come across. It gives you a range of common types of errors and a error handler that converts each error type into the appropriate HTTP status code.
This is very convenient (especially for APIs) as it builds readable error messages and correct status codes with very little work from the programmer.