<div dir="ltr">Hi Boris,<div><br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 10, 2014 at 7:34 PM, Boris Parak <span dir="ltr"><<a href="mailto:256254@mail.muni.cz" target="_blank">256254@mail.muni.cz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Carlos,<br>
<div class=""><br>
On Thu, Jul 10, 2014 at 6:27 PM, Carlos Martín Sánchez<br>
<<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>> wrote:<br>
> Hi Boris,<br>
><br>
> The return code in that case is ACTION, see [1] for more details.<br>
<br>
</div>thanks! Does ACTION have a special meaning? In other words, if you had<br>
to translate it to an HTTP status code which one would you pick? Is it<br>
used consistently for a certain type of errors? The same goes for<br>
XML_RPC_API, which HTTP code would you pick? Both have 'FIXME'<br>
description in the docs :-)<br></blockquote><div> </div><div> </div><div>ACTION was supposed to be a response to a bad request (e.g. bad state to perform action), and INTERNAL for other errors, like the VM you are trying to shutdown could not be loaded from the DB.</div>

<div><span style="color:rgb(53,55,53);font-family:Verdana,Geneva,sans-serif;font-size:13px;line-height:19.047618865966797px">XML_RPC_API was for bad parameters (e.g. it should be a flag -1 or -2, and you sent -7).</span><br>

</div><div><span style="color:rgb(53,55,53);font-family:Verdana,Geneva,sans-serif;font-size:13px;line-height:19.047618865966797px"><br></span></div><div>But to be honest, I think the ACTION, INTERNAL and <span style="color:rgb(53,55,53);font-family:Verdana,Geneva,sans-serif;font-size:13px;line-height:19.047618865966797px">XML_RPC_API values </span>are not clearly defined in the code, and there is a bit of overlap in their use. I would simplify things and consider them the same error. I guess that's why they are still documented with FIXME....</div>

<div><br></div><div>Regards.</div><div><div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" target="_blank" style="color:rgb(42,93,176)"></a></span></div>

</div></div></div><br></div></div></div></div>