Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I want to recommend a package that I really love:

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.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: