Bitcoin Core  0.20.99
P2P Digital Currency
protocol.h
Go to the documentation of this file.
1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2019 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_RPC_PROTOCOL_H
7 #define BITCOIN_RPC_PROTOCOL_H
8 
11 {
12  HTTP_OK = 200,
20 };
21 
24 {
26  // RPC_INVALID_REQUEST is internally mapped to HTTP_BAD_REQUEST (400).
27  // It should not be used for application-layer errors.
29  // RPC_METHOD_NOT_FOUND is internally mapped to HTTP_NOT_FOUND (404).
30  // It should not be used for application-layer errors.
33  // RPC_INTERNAL_ERROR should only be used for genuine errors in bitcoind
34  // (for example datadir corruption).
36  RPC_PARSE_ERROR = -32700,
37 
49  RPC_IN_WARMUP = -28,
51 
56 
65 
68 
81 
84 
87 };
88 
89 #endif // BITCOIN_RPC_PROTOCOL_H
No wallet specified (error when there are multiple wallets loaded)
Definition: protocol.h:80
Aliases for backward compatibility.
Definition: protocol.h:53
Node has not been added before.
Definition: protocol.h:61
Keypool ran out, call keypoolrefill first.
Definition: protocol.h:73
Ran out of memory during operation.
Definition: protocol.h:42
Enter the wallet passphrase with walletpassphrase first.
Definition: protocol.h:74
Wallet is already unlocked.
Definition: protocol.h:78
Transaction or block was rejected by network rules.
Definition: protocol.h:47
HTTPStatusCode
HTTP status codes.
Definition: protocol.h:10
Client still warming up.
Definition: protocol.h:49
Invalid, missing or duplicate parameter.
Definition: protocol.h:43
General error during transaction or block submission.
Definition: protocol.h:46
The wallet passphrase entered was incorrect.
Definition: protocol.h:75
Transaction already in chain.
Definition: protocol.h:48
Unexpected type was passed as parameter.
Definition: protocol.h:40
Command given in wrong wallet encryption state (encrypting an encrypted wallet etc.)
Definition: protocol.h:76
General application defined errors.
Definition: protocol.h:39
Invalid address or key.
Definition: protocol.h:41
Invalid IP/Subnet.
Definition: protocol.h:63
Invalid wallet specified.
Definition: protocol.h:79
Backwards compatible aliases.
Definition: protocol.h:83
RPC method is deprecated.
Definition: protocol.h:50
Database error.
Definition: protocol.h:44
Failed to encrypt the wallet.
Definition: protocol.h:77
Not enough funds in wallet or account.
Definition: protocol.h:71
Node to disconnect not found in connected nodes.
Definition: protocol.h:62
Node is already added.
Definition: protocol.h:60
Unused reserved codes, kept around for backwards compatibility. Do not reuse.
Definition: protocol.h:86
Standard JSON-RPC 2.0 errors.
Definition: protocol.h:28
Wallet errors.
Definition: protocol.h:70
No valid connection manager instance found.
Definition: protocol.h:64
RPCErrorCode
Bitcoin RPC error codes.
Definition: protocol.h:23
Still downloading initial blocks.
Definition: protocol.h:59
P2P client errors.
Definition: protocol.h:58
Invalid label name.
Definition: protocol.h:72
Error parsing or validating structure in raw format.
Definition: protocol.h:45