4 ms·
Yeah, but I would want to know which library function could possibly throw an error and not be caught off guard by that after deploying to prod :-/
by 9dev 4y ago
Yeah, but I would want to know which library function could possibly throw an error and not be caught off guard by that after deploying to prod :-/
- hot_gril 4y agoIt's almost accurate to assume that everything can throw an error in high-level code like this, especially in something complex enough to warrant a lib. The thing is, in a webserver, those are all unexpected errors and thus 500. There are only a few known ways the client can use it wrong, and I give 400 for those.