diff --git a/jaxb/src/main/java/feign/jaxb/JAXBDecoder.java b/jaxb/src/main/java/feign/jaxb/JAXBDecoder.java index 06e9cce4..aa0a6a66 100644 --- a/jaxb/src/main/java/feign/jaxb/JAXBDecoder.java +++ b/jaxb/src/main/java/feign/jaxb/JAXBDecoder.java @@ -66,7 +66,7 @@ public class JAXBDecoder implements Decoder { @Override public Object decode(Response response, Type type) throws IOException { - if (response.status() == 404) + if (response.status() == 404 || response.status() == 204) return Util.emptyValueOf(type); if (response.body() == null) return null;