If the actual response body is the string "null" (which it looks to be, based on the bug report), then 200 OK is correct. If the response body is actually empty, then I believe 204 No Content would be more appropriate.<br clear="all">
<div><br></div><div>However, I'm guessing it's a bug that a response body is returned at all?</div><div><br></div>-Dolph<br>
<br><br><div class="gmail_quote">On Thu, Oct 25, 2012 at 3:07 PM, Nachi Ueno <span dir="ltr"><<a href="mailto:nachi@nttmcl.com" target="_blank">nachi@nttmcl.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Salvatore<br>
<br>
I have question about  the consistency of return code of the remove action.<br>
So currently remove_router_interface returns 200.<br>
It looks deletion of the interface , so it should be 204.<br>
<br>
remove_router_interface returns string "null"<br>
<a href="https://bugs.launchpad.net/quantum/+bug/1064727" target="_blank">https://bugs.launchpad.net/quantum/+bug/1064727</a><br>
<br>
I discussed with Dan about this.<br>
His opinion is PUT always should return 200.  ( One another reason is<br>
backward compatibility with Folsom version )<br>
This is also make sense for me if all PUT method returns 200 if success.<br>
<br>
How do you think about this spec?<br>
<br>
Thanks<br>
Nachi<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br>