by smt88 · 5y ago · 0 comments
Other clients only treat 5xx as a throwable exception, and some don't throw unless the request fails to hit the HTTP server.
Because of these issues, your best bet is to just wrap your HTTP API in a native client library. You certainly can't target a generic HTTP or REST wrapper.
That said, I think there are very many http clients that implement enough of the standards to me incredibly rich and in line with the spirit of the protocol. The web for humans and machines is based on http. It can improve, but the standard has quite sufficient support to be called practically meaningful