When you develop software, you should handle abnormal events, aka, errors and exceptions, the proper way. If you ignore that, you’ll end up with your users seeing ugly messages, or even blank screens, or you (or other developers) not having important diagnostic details. Here, I’ll talk about a common situation I see when developing web applications: the client code trying to process API requests that failed (ie, `HTTP Status != 20x`) as if nothing bad happened. In most cases, this causes the further complication that CORS-related errors confusingly appear on the browser, hiding the actual problem.
Life has exceptions, and Web Applications are no ExceptionRead More »