Closed nuest closed 7 years ago
Ok, I would not mind even though I think it is a case of
204 (No Content) if the action has been enacted but the response does not include an entity.
since the deletion is done in the remote depot, but I am unsure as of how to interpret "entity" in http 1.1 method definitions
Sure, another solution would be to remove the content in the response and simply return 204
.
I noticed just now that the 204 is only a forwarding of the original repo's answer and in constrast to the current web api doc is not given out as API response but only in the shipper's log. I will add a proper response but stick with 204 (without entity). Imagine a scenario where you delete many files from a remote repo then this is a good ways to process it.
As described in http://o2r.info/o2r-web-api/shipment/#create-a-new-shipment, the response for deleting content in a deposit contains a body, and therefore the response code should be 200, not 204, see https://stackoverflow.com/questions/2342579/http-status-code-for-update-and-delete