title: Feign and undeclared throwable exception for 404 Not Found
body: <p>I'm trying to catch Feign response and evaluate exception for 404 Not Found response something like REST Template does below:</p>
  
  <pre class="lang-java prettyprint-override"><code>try {
    response = restTemplate.exchange(url, HttpMethod.GET, request, Foo.class);
  
  } catch (HttpClientErrorException ex) {
       if (ex.getStatusCode() != HttpStatus.NOT_FOUND) {
         throw ex;
       }
  }
  </code></pre>
  
  <p>but for </p>
  
  <pre><code>Foo response = feignClient.getFoo(foo)
  </code></pre>
  
  <p>which may throw <code>undeclaredThrowable</code> with <code>responseCode</code> 404.</p>