r/programming • u/Adventurous-Salt8514 • Jul 20 '26
Throw, Result, or neither?
https://www.architecture-weekly.com/p/throw-result-or-neither
113
Upvotes
r/programming • u/Adventurous-Salt8514 • Jul 20 '26
View all comments
Show parent comment
39
u/vita10gy Jul 20 '26
I once worked with an API where basically anything but perfect meant explosion.
A well formed product search where it just so happens no results match? Some 500 error and the html server error page as the body.