5 ms·
4xx is for invalid requests. You wouldn't log a 404 as an error
by jonathrg 10mo ago
4xx is for invalid requests. You wouldn't log a 404 as an error
- raldi 10mo agoI’m talking about codes you receive from services you call out to.
- jonathrg 10mo agoOh that makes sense.
- raldi 10mo 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 10mo ago[deleted]
- mewpmewp2 10mo 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.