{ "subject": "Re: HTTP status codes from the JSON-RPC api", "content": { "format": "html", "body": "<div class=\"post\">This is in SVN rev 147.<br/><br/>This is more standard, and although json-rpc 1.0 didn't specify the format of error objects, it did specify that they would be <i>objects</i> not strings or other values, so we needed to change this to be correct.&nbsp; The code/message members have become standard in later json-rpc specs.<br/><br/>If you have code that checks the error and expects a string, you'll need to change it.&nbsp; When there is an error, the error member is now an object not a string.<br/><br/>Also in SVN rev 147:<br/>- The command line json-rpc returns the error code as its exit code.&nbsp; Exit codes can only be 0-255 on unix, so it's abs(code)%256.<br/>- The \"backupwallet &lt;destination&gt;\" command that was discussed in another thread.&nbsp; It locks the wallet and copies it, so you can be sure you get a correct copy.<br/></div>" }, "source": { "name": "Bitcoin Forum", "url": "https://bitcointalk.org/index.php?topic=969.msg12130#msg12130" }, "date": "2010-09-06T21:21:21Z" }
Inscription number 18,210,126
Genesis block 799,367
File type json
File size 1.23 KB
Creation date