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

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 :-/


It'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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: