Added error codes of the I2PControl API.

This commit is contained in:
dev
2011-07-21 14:05:41 +00:00
parent 5a4510ef95
commit 142704bbc5

View File

@ -138,6 +138,20 @@ Response:
<p>* denotes an optional value.</p>
<p>** denotes a possibly occuring return value</p>
<h3>Error codes</h3>
<ul>Standard JSON-RPC2 error codes.
<li>-32700 &ndash; JSON parse error.</li>
<li>-32600 &ndash; Invalid request.</li>
<li>-32601 &ndash; Method not found.</li>
<li>-32603 &ndash; Internal error.</li>
</ul>
<ul>I2PControl specific error codes.
<li>-32001 &ndash; Invalid password provided.</li>
<li>-32002 &ndash; No authentication token presented.</li>
<li>-32003 &ndash; Authentication token doesn't exist.</li>
<li>-32004 &ndash; The provided authentication token was expired and will be removed.</li>
</ul>
{% endblock %}