AnsweredAssumed Answered

Change HTTP Response Code on Exception

Question asked by mark.springthorpe131988 on Apr 7, 2017
Latest reply on Apr 7, 2017 by James Ahlborn

Hi,

 

I have a Boomi process that takes its input from a Web Services Listener, and raises handled exceptions if it finds anything wrong with the input data,

 

If the calling application receives an HTTP error, it needs to differentiate between errors that need the service request to be replayed (e.g. Boomi was unavailable) or errors that don't need to be replayed as they need Support team intervention (e.g. Boomi finds invalid data).

 

Currently Boomi returns a HTTP response of 500 for both scenarios, so I want to return a response of 400 whenever an Exception Shape is triggered.

 

I know how to modify the HTTP response before a Return Shape ('outstatuscode' property), but can't figure out how to achieve this before an Exception Shape - can anyone help ?

 

Thanks

Outcomes