on 04-15-2015 11:43 PM
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
Hello Abhishek,
202 is the expected status and indicates that Request is accepted for processing.
In your case for every request ( PUT operation ) inside the payload, you would get 204 No Content on successful Update of each entry.
The response will have the status for each operation.
We need to read the Status of each operation inside response body and act accordingly.
We should not modify any Status which is set by our Gateway.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.