5 ms·
> I've gotten value from HTTP responses in the 300s, 400s, and 500s being handled appropriately by various tools without having to write special RPC logic for t
by slver 6y ago
> I've gotten value from HTTP responses in the 300s, 400s, and 500s being handled appropriately by various tools without having to write special RPC logic for those cases. What am I missing?
What exactly is behind this statement?
What tools do you have in mind, and what do they do with 400s and 500s? Other than Chrome DevTools coloring the response in red automatically, a big win. /s
I've also never seen an API redirect and force a pointless second (and third etc.) roundtrip for the client to get the same exact content.
Just because (some) of these codes mean something for a web page and a browser, doesn't mean they're automatically meaningful for a real-world API. That's the critical distinctions, which REST fans refuse to acknowledge.
- jorge-fundido 6y agoMiddleware comes to mind (eg caches, proxies, api gateways).