by Wintamute · 5y ago · 0 comments
Is a request that technically succeeds (the response has come back), but has a status code where the server has indicated something didn't work always an _exception_ in your client code? I'd argue it isn't, and should just be handled in the normal control flow of your client code via conditionals.
Java users might want to make 404 an exception (FileNotFoundException), C++ users probably wouldn't throw an exception for that