If you want to use multiple decoders in your Feign builder, you can initialize the decoder Bean as follows.
@Bean
public Decoder decoder() {
Decoder decoder = (response, type) -> {
if (type.getTypeName().equals("java.lang.String") ||
type.getTypeName().equals("byte[]")
) {
return new Decoder.Default().decode(response, type);