We have published an article that explains how to keep control of error handling in HTTP APIs. Often, HTTP libraries come with predefined “hidden” error handlers that produce responses that don’t match the format of your HTTP API (e.g., they return an HTML or a text response instead of a JSON response). We show how to use the library endpoints to enforce consistent technical errors and business errors.
I’m interested to know if this addresses a problem that you often encounter, and what you think of the solution.
You can share it to your network by retweeting this tweet: https://twitter.com/Bestmile/status/1222898511751942150