7 ms·
4xx is for invalid requests. You wouldn't log a 404 as an error
by jonathrg 9mo ago
4xx is for invalid requests. You wouldn't log a 404 as an error
- raldi 9mo agoI’m talking about codes you receive from services you call out to.
- jonathrg 9mo agoOh that makes sense.
- raldi 9mo agoThere are still some special cases, because 404 is used for both “There’s no endpoint with that name” and “There’s no record with the ID you tried to look up.”
- deleted 9mo ago[deleted]
- mewpmewp2 9mo agoWhat if user sends some sort of auth token or other type of data that you yourself can't validate and third party gives you 4xx for it? You won't know ahead of time whether that token or data is valid, only after making a request to the third party.