What is the HTTP response code for failed HTTP Delete operation?

后端 未结 2 1563
半阙折子戏
半阙折子戏 2020-12-13 06:03

I have a resources with uri /api/books/122 , if this resource doesn\'t exist at the point where a client sends HTTP Delete for this resource, what is the approp

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 06:15

    Yes, it would be 404.

    In general it will be a 400 series error if the request is wrong somehow, and a 500 series error if something goes awry on the server.

提交回复
热议问题