Actions
Bug #7352
closedMissing DNS record should return 404 not 400 for DELETE
Description
$ curl -X DELETE http://localhost:8443/dns/wheezy506.sapphire.elysium.emeraldreverie.org
DNS virsh provider error: unable to retrive virsh info: Cannot find DNS entry for wheezy506.sapphire.elysium.emeraldreverie.org%
[2014-09-04 12:13:49] INFO WEBrick::HTTPServer#start: pid=25330 port=8443
sapphire.elysium.emeraldreverie.org - - [04/Sep/2014:12:13:50 BST] "DELETE /dns/wheezy506.sapphire.elysium.emeraldreverie.org HTTP/1.1" 400 127
- -> /dns/wheezy506.sapphire.elysium.emeraldreverie.org
We should return 404 not 400 when the DELETE operation can't find the record
Actions