Thanks for the responses,
I need to handle the Protocol exceptions(Non 200 http codes), so that the messages gets suspended in BizTalk for resumption.
In my scenario,
Trail1: I have a two way send port(without orchestration), to send message to REST API service. Any error/exceptions thrown by the service is returning as an xml message(not as exception faults), hence it is not getting suspended in BizTalk(will not get
into catch block as well).
Trial2: If I use a one way send port, adapter shows it as successfully delivered despite of an error/exception.
My requirement is to handle this exception(to read the error status code) and suspend the message in BizTalk.
I suppose, the Custom behaviour will help me in catching those exceptions and push that as a suspended message, but I am lacking with the right article which can help me with .
As this is the first time I am working on behaviors, Please suggest your views / links or any ideas which can feed this requirement.
Thanks