'Consuming external endpoints using Spring

I have 3 endpoints. I'm getting 200 status in 2 endpoints and 404 in the 3rd endpoint. I want the output to be like { { name:a response:24 } { name:b response:23 } { name:c response:404 not found } } please Give me suggestions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source