Forum Discussion

christwr's avatar
christwr
Contributor III
8 years ago

HTTP Response Code (Header) for Triggered Task

I have a triggered SnapLogic REST API task, with a pipeline that calls a separate vendor REST API. I want to catch any errors from the vendor API so I can return them back in my SnapLogic API response. If I do though, then the error is considered handled and the HTTP response code back to my requester indicates success. If I don’t handle the error, then the pipeline will fail and provide back a generic failure HTTP response code, but without any of the details from the vendor response.

Is it possible to catch/handle the vendor API error, with a successful pipeline execution, but somehow manipulate the SnapLogic HTTP response code with an error code?