阅读背景:

当部分批量更新失败时,我应该返回什么状态代码?

来源:互联网 

Let's say I'm a server responding to a request to do a bulk create of some entity. Let's say that I've also decided to make it so that if one instance of the entity can't be created, due to a server error or user error, I will still create the other entity instances. In this scenario what should I return? A 201 because I created most of the entities in the request? Or A 4xx/5xx since there was an error while creating one of the entities? Let's say I'm a server responding to a request




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: