Bitcoin Core  28.1.0
P2P Digital Currency
protocol.h
Go to the documentation of this file.
1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2021 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,
21 };
22 
25 {
27  // RPC_INVALID_REQUEST is internally mapped to HTTP_BAD_REQUEST (400).
28  // It should not be used for application-layer errors.
30  // RPC_METHOD_NOT_FOUND is internally mapped to HTTP_NOT_FOUND (404).
31  // It should not be used for application-layer errors.
34  // RPC_INTERNAL_ERROR should only be used for genuine errors in bitcoind
35  // (for example datadir corruption).
37  RPC_PARSE_ERROR = -32700,
38 
50  RPC_IN_WARMUP = -28,
52 
56 
66 
69 
84 
87 
90 };
91 
92 #endif // BITCOIN_RPC_PROTOCOL_H
No wallet specified (error when there are multiple wallets loaded)
Definition: protocol.h:81
Aliases for backward compatibility.
Definition: protocol.h:54
Node has not been added before.
Definition: protocol.h:61
Keypool ran out, call keypoolrefill first.
Definition: protocol.h:74
Ran out of memory during operation.
Definition: protocol.h:43
Enter the wallet passphrase with walletpassphrase first.
Definition: protocol.h:75
Max number of outbound or block-relay connections already open.
Definition: protocol.h:65
Wallet is already unlocked.
Definition: protocol.h:79
Transaction already in utxo set.
Definition: protocol.h:49
Transaction or block was rejected by network rules.
Definition: protocol.h:48
HTTPStatusCode
HTTP status codes.
Definition: protocol.h:10
Client still warming up.
Definition: protocol.h:50
This same wallet is already loaded.
Definition: protocol.h:82
Invalid, missing or duplicate parameter.
Definition: protocol.h:44
General error during transaction or block submission.
Definition: protocol.h:47
The wallet passphrase entered was incorrect.
Definition: protocol.h:76
Unexpected type was passed as parameter.
Definition: protocol.h:41
Command given in wrong wallet encryption state (encrypting an encrypted wallet etc.)
Definition: protocol.h:77
General application defined errors.
Definition: protocol.h:40
Invalid address or key.
Definition: protocol.h:42
Invalid IP/Subnet.
Definition: protocol.h:63
Invalid wallet specified.
Definition: protocol.h:80
Backwards compatible aliases.
Definition: protocol.h:86
RPC method is deprecated.
Definition: protocol.h:51
Database error.
Definition: protocol.h:45
Failed to encrypt the wallet.
Definition: protocol.h:78
Not enough funds in wallet or account.
Definition: protocol.h:72
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:89
Standard JSON-RPC 2.0 errors.
Definition: protocol.h:29
Wallet errors.
Definition: protocol.h:71
No valid connection manager instance found.
Definition: protocol.h:64
There is already a wallet with the same name.
Definition: protocol.h:83
RPCErrorCode
Bitcoin RPC error codes.
Definition: protocol.h:24
Still downloading initial blocks.
Definition: protocol.h:59
P2P client errors.
Definition: protocol.h:58
Invalid label name.
Definition: protocol.h:73
Error parsing or validating structure in raw format.
Definition: protocol.h:46