how to get response body during 400 error in http oubound gateway -


i have

gateway -> chain -> http:outbound-gateway -> transformer

for gateway have error-channel handle 400 responses outbound-gateway.

the payload in error channel messagehandlingexception. not have way retrieve response body.

is there way can response body payload instead of exception. or there way if can hold of response body?

my 400 response has body.

it isn't spelled out in docs, available. messagehandlingexception has nested exception of httpclienterrorexception. has captured response body among other bits of useful information. extract response body, call payload.getcause().getresponsebodyasstring()


Comments