0

I’m not able to access the error body in my spring integration error handling flow

Message received from external system Status: 400 Bad Request

Response body: { “title”: “record already exists”, “errorCode”: -1 }

Tried to access the response body but unable to do so msg.getPayload().getCause(), (MesaagingException)msg.getPayload().getRootCause() doesn’t work either. Only able to retrieve the status.

sophopile
  • 11
  • 2

0 Answers0