Use rpc errors defined in btcjson.