4 ms·
+1, each time I return 404 for an object which is not found in the DB, the customer gets a red error message in their UI as if something failed more severely th
by laurent92 5y ago
+1, each time I return 404 for an object which is not found in the DB, the customer gets a red error message in their UI as if something failed more severely than an object being unavailable, and the metrics believe something is unavailable.
I bit my fingers every time I have mapped HTTP verbs and neither return codes, to REST verbs and codes.
Also, error codes at the API level often need a remapping when used in user context, for example if the OAuth token expires, we don’t say it the same way for an action of the user (then it’s mandatory) than when displaying data passively (in which case it shouldn’t be too red because the user may not care).