Skip to Content

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers