REST API response in partial success
问题 I have an API which does some bulk processing task. Let's say it does naming of some resource. I passed 7 request in bulk, out of which 5 updated successfully and 2 failed. My question is how to handle the response. With HTTP I can't return both success and error at same time. There is a HTTP code of partial success but I need to return individual response of all resource at once. Is there anyway we can do it? 回答1: You may use 207 MULTI-STATUS for http status A Multi-Status response conveys