Project

General

Profile

Actions

Bug #7352

closed

Missing DNS record should return 404 not 400 for DELETE

Added by Greg Sutcliffe over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DNS
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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


Related issues 1 (0 open1 closed)

Has duplicate Smart Proxy - Bug #7375: Smart proxy return 400 when DNS entry not foundDuplicateShlomi Zadok09/08/2014Actions
Actions

Also available in: Atom PDF