@Test
  void notFoundDecodesToEmpty() throws Exception {
    Response response =
        Response.builder()
            .status(404)
            .reason("NOT FOUND")
            .headers(Collections.emptyMap())
            .request(
                Request.create(HttpMethod.GET, "/api", Collections.emptyMap(), null, Util.UTF_8))
            .build();
    assertThat((byte[]) new GsonDecoder().decode(response, byte[].class)).isEmpty();
  }
Enabled via {@link feign.Feign.Builder#dismiss404()}
gson/src/test/java/feign/gson/GsonCodecTest.java