Feign Client Error Handling - Suppress the Error/Exception and convert to 200 success response

18
May 16, 2019, at 6:50 PM

I am using feign client to connect to downstream service.

I got a requirement that when one of the downstream service endpoint returns 400 ( it's partial success scenario ) our service need this to be converted to 200 success with the response value.

I am looking for a best way of doing this.

We are using error decoder to handle the errors and the above conversion is applicable for only one endpoint not for all the downstream endpoints and noticed that decode() method should returns exception back.

READ ALSO
How to disable Jackson from deserializing an Instant from epoch millis?

How to disable Jackson from deserializing an Instant from epoch millis?

I am developing an API using Spring Boot and am using Jackson for payload (de)serializationI want to deserialize an ISO-8601 formatted datetime into a java

16
what does it mean BuildConfig.FLAVOR in this code

what does it mean BuildConfig.FLAVOR in this code

I need some Help about BuildConfigFLAVOR

24
How can I make a list still contain its elements even after clearing it?

How can I make a list still contain its elements even after clearing it?

How should I go about setting a key to a list in a foreach loop and then reseting aforementioned list so it takes in other values without clearing it

33
How can I run wsgen ant task natively in Kotlin dsl?

How can I run wsgen ant task natively in Kotlin dsl?

I am converting existing groovy based gradle task into kotlin, following approach is painfully slowIs there an alternative approach to what I have so far?

14