How to Handle API Errors with Spring WebFlux and WebClient

Posted on Jan 29, 2021 in
Reading time: 1 minute

Intro

In this tutorial, I’ll demo how to consume the GitHub API using the Spring Boot WebClient. The exciting part will be handling the response body if the API doesn’t return the content we expect but replies with an error body instead.

🍿 Watch on YouTube or get the code from GitHub

The Dead Letter Queue

Love what you're seeing? By subscribing to my newsletter, not only will you be the first to know about fresh tutorials and videos, but you'll also unlock:

Subscribe now and become a part of our growing tech tribe!