title: Feign client retry on exception
body: <p>So far we have a feign client which in case of exception, we used to retry as below</p>
  <pre class="lang-java prettyprint-override"><code>Retryer&lt;ClientResponse&gt; retryer = RetryerBuilder.&lt;ClientResponse&gt;newBuilder()
    .retryIfExceptionOfType(FeignException.class)
    .withStopStrategy(StopStrategies.stopAfterAttempt(retryCount))
    .withWaitStrategy(WaitStrategies.exponentialWait(maxWaitSeconds, TimeUnit.SECONDS))
    .build();
      
  retryer.call(() -&gt; { 
    return client.doStuffs(someInput); }
  );
  </code></pre>
  <p>recently I tried moving from this custom retryer to an inbuilt feign retryer as below :</p>
  <pre class="lang-java prettyprint-override"><code>Feign client = Feign.builder()
      .decoder(jacksonDecoder)
      .encoder(jacksonEncoder)
      .logger(slf4jLogger)
      .client(okHttpClient)
      .retryer(new Retryer.Default(
                              SECONDS.toMillis(minWaitSeconds), 
                              SECONDS.toMillis(maxWaitSeconds), 
                              retryCount
              ))
      .requestInterceptor(new BasicAuthRequestInterceptor(clientConfig.getUser(), clientConfig.getPassword()))
      .target(target);
      
  client.doStuffs(someInput);
  </code></pre>
  <p>understanding was that feign client itself would be taking care of exception but apparently, that's not the case, the minute client throws a <code>5xx</code>, I get an exception with no retries.
  Is there something else needed for the implementation to retry?</p>
  <p>this service is in dropwizard, git and SO threads are mostly around spring / ribbon which is not the case with me.</p>
  <p>dep</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;io.github.openfeign&lt;/groupId&gt;
      &lt;artifactId&gt;feign-core&lt;/artifactId&gt;
      &lt;version&gt;${feign.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>