Skip to Content
0

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

Jul 13, 2017 at 11:09 AM

36

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers