Re:I've been abusing HTTP Status Codes in my APIs for years
by Spivak on Wednesday July 13, 2022 @11:13AM
(#32083815)
Example Code:
Assuming, users (i.e developers) will just never mistype a URL so you don't have to give useful feedback is just like being a bad netzen.
[ Parent
| on HN ]
Re:I've been abusing HTTP Status Codes in my APIs for years
by NoGravitas on Wednesday July 13, 2022 @11:27AM
(#32084025)
That's a fair example. And returning 404 (Not Found) or 410 (Gone) is the most useful kind of feedback. More explanation in the body of the 404 response is helpful too, of course.