News for hackers. Stuff that matters.
Re:I've been abusing HTTP Status Codes in my APIs for years by stop50 on Wednesday July 13, 2022 @08:43AM (#32081818)
Wouldn't 426 be better for nonexisting api roots?
Re:I've been abusing HTTP Status Codes in my APIs for years by that_james on Wednesday July 13, 2022 @08:46AM (#32081838)
Sho, I don't know. Maybe?

I've never seen one in the wild, but looking at the docs is that error not reserved for using the wrong protocol (such as 1/1 when the server only accepts 2 or something?)

Re:I've been abusing HTTP Status Codes in my APIs for years by stop50 on Wednesday July 13, 2022 @08:56AM (#32081956)
Official yes, but if you want to misuse statuscodes this would be a better solution in my eyes.