Keep control of error handling in your HTTP APIs

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.

The article is here: https://medium.com/bestmile/restful-error-handling-with-akka-http-and-the-library-endpoints-89a7423257a4

You can share it to your network by retweeting this tweet: https://twitter.com/Bestmile/status/1222898511751942150

1 Like