I have the following http request:
<http:request config-ref="FlowVarsHostAndPort" path="/rest/bpo/evento" method="POST" doc:name="Envia movimentacoes para Elaw Correspondente">
<http:request-builder>
<http:header headerName="Content-Type" value="application/json"/>
</http:request-builder>
</http:request>
This service is inside a foreach, when it returns 200 its fine, but when it returns 404 it throws an exception an the flow stops, i need that when the service returns me a 404 i look at the payload and determine if it needs to keep executing the flow, how can i achieve it?
I tryed using the catch exception strategy but with no sucess.
ps: The service will return 404 when i'm looking for a resource that is not there, one example of response:
{
"processo": "0009843-63.2016.8.13.0301",
"mensagem": "Não foi possivel encontrar o processo"
}