cancel
Showing results for 
Search instead for 
Did you mean: 

How to set different response HTTP status code for each embedded request in $batch

scheinem
Explorer
0 Kudos

Hi,

I want to set an error HTTP status code (e.g. 400) for some requests contained in a $batch changeset.

The problem I have now is that throwing a /iwbep/cx_mgw_busi_exception in CHANGESET_PROCESS (if I use defer_mode) as well as in PATCH_ENTITY or UPDATE_ENTITY (if I use NON defer_mode) will lead to execution abortion and a response which contains only one changeset response. Namely the one where I've raised the error one and omitting the response for all previous and successful executed requests.

How am I able to set a custom HTTP status code for each $batch changeset request's response?

Accepted Solutions (0)

Answers (0)