{"id":285,"date":"2004-02-18T18:04:00","date_gmt":"2004-02-18T22:04:00","guid":{"rendered":"http:\/\/www.markbaker.ca\/wp\/?p=271"},"modified":"2004-02-18T18:04:00","modified_gmt":"2004-02-18T22:04:00","slug":"must-delete-yield-4xx","status":"publish","type":"post","link":"http:\/\/www.markbaker.ca\/blog\/2004\/02\/must-delete-yield-4xx\/","title":{"rendered":"Must DELETE yield 4xx?"},"content":{"rendered":"<p>On the brand-spankin-new <a href=\"\/\/irc.freenode.net\/rest\">REST IRC channel<\/a>\n(does anybody have the ability to set up a\n<a href=\"http:\/\/usefulinc.com\/chump\/\">chump<\/a> and\/or\n<a href=\"http:\/\/cvs.ilrt.org\/cvsweb\/redland\/logger\/\">log bot<\/a>?),\n<a href=\"http:\/\/www.bitworking.com\">Joe Gregorio<\/a> asks;<\/p>\n\n<pre>\n[18-Feb:17:02 jcgregorio] ok, quick question about DELETE, does success mean the URI *has* to then go 404 or 410?\n[18-Feb:17:02 jcgregorio] here is the context\n[18-Feb:17:02 jcgregorio] I am adding support for the AtomAPI to a wiki\n[18-Feb:17:02 jcgregorio] one of the actions is to DELETE a definition\n[18-Feb:17:03 jcgregorio] but as far as a wiki is concerned, *all* words exist, they just don't have definitions yet\n[18-Feb:17:04 jcgregorio] for example: http:\/\/www.intertwingly.net\/wiki\/pie\/ALongWikiWordWhichHasNeverBeenEdited\n[18-Feb:17:05 jcgregorio] my implementation now gives a 200 on DELETE, which removes the definition, but doin a GET on the DELETED URI returns a valid Atom Entry with empyt content\n<\/pre>\n\n<p>Great question.  I&#8217;d say that it&#8217;s up to the server to interpret what DELETE\nmeans (within the bounds of the RFC 2616 definition, of course).  The behaviour\nyou describe for the Wiki there is reasonable, I&#8217;d say.<\/p>","protected":false},"excerpt":{"rendered":"On the brand-spankin-new REST IRC channel (does anybody have the ability to set up a chump and\/or log bot?), Joe Gregorio asks; [18-Feb:17:02 jcgregorio] ok, quick question about DELETE, does success mean the URI *has* to then go 404 or 410? [18-Feb:17:02 jcgregorio] here is the context [18-Feb:17:02 jcgregorio] I am adding support for the [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":0,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}