I need to be able to perform certain actions based on the http response code I get back from an http outbound endpoint. For instance if I get a 500 error or a 302 redirect or a
You can get the HTTP response code with the following expression right after the HTTP outbound endpoint:
#[message.inboundProperties['http.status']]
Likewise in a Groovy script:
message.getInboundProperty('http.status')