Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

$batch response error handling

$
0
0

Hi,

 

I'm receiving number of PUTs in $batch POST request and after processing in case of any error, the error text is sent in the response body. The header HTTP status remains 202 (Accepted) irrespective of success or failure in batch response.

 

What is the best way to handle this response in UI to read the error messages?

OR

Is there a way to modify the HTTP status code to indicate error in the response body?

 

Thanks for your help.

 

Regards,

Abhishek


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>