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

http, rest

Solution

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.

Problem

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 appropriate response code from this action? Is it 404 Not Found? Thanks

Original source

Related problems