in many situations, when using ServiceRestClient in catch clause usually first thing to do is log exception on error message - which in most cases just doubles the error message that was already logged by default ResponseRethrowingErrorHandler
there are situations where receiving 4xx response is expected behaviour - in that case logging error message result in confusion, since developer seeing error message in logs might assumes that something broke
Not wanting to change the default behaviour of this handler I think it's best to make it configurable and let the developers decide.
Reasoning for this change is two-fold:
Not wanting to change the default behaviour of this handler I think it's best to make it configurable and let the developers decide.