Re:I've been abusing HTTP Status Codes in my APIs for years
by light_hue_1 on Wednesday July 13, 2022 @10:12AM
(#32083011)
This is like saying that if /web/index.html exists we shouldn't return 404 when /web/junk.html does not exist. That's clearly nonsense and not how http was designed to work.
[ Parent
| on HN ]
Re:I've been abusing HTTP Status Codes in my APIs for years
by that_james on Wednesday July 13, 2022 @11:09AM
(#32083759)
That was what I meant by "actual web servers" :D poorly described though, fair enough.
I should have been clearer about this relating to HTTP RPC. I updated the post.
That said, after reading the responses here, I can see that what I've actually achieved is making the response harder to determine for the client, which is antithetical to the objective.