Does idempotency include response codes?

て烟熏妆下的殇ゞ 提交于 2019-12-02 17:05:46

I asked this question on the HTTP mailing list and was told that idempotency does not include return codes. Meaning, you are free to return HTTP 204 the first time a resource is deleted, and HTTP 404 at a later time, so long as the subsequent request does not change the server state.

While it is true that subsequent requests may not change the server state, the response codes are not considered part of that state.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!