News for hackers. Stuff that matters.
Re:I've been abusing HTTP Status Codes in my APIs for years by smashed on Wednesday July 13, 2022 @01:18PM (#32085761)
Of course. Its just that in the general mindset, an hypothetical average dev who needs to call your API won't be surprised to receive a 404 for a missing resource. I might be wrong of course.

Either way, a proper api doc/spec should make either approach a non-issue.

Personnally, I've switched to graphql where it makes sense. Application level error codes and handled on the graphql layer, not on the HTTP layer, so you could say I've adopted that approach!

There are no comments on this comment yet.