Problem: HTTP status codes in code aren't type safe and require looking them...
Problem: HTTP status codes in code aren't type safe and require looking them up or memorizing them all.
Solution: http-status-codes
Now I have autocomplete and strongly typed status codes that are easy to read later. And no more worries about typos or invalid codes slipping in.
https://www.npmjs.com/package/http-status-codes
