Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
protocol.h
Go to the documentation of this file.
1// Copyright (c) 2010 Satoshi Nakamoto
2// Copyright (c) 2009-2016 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
20
24 // RPC_INVALID_REQUEST is internally mapped to HTTP_BAD_REQUEST (400).
25 // It should not be used for application-layer errors.
27 // RPC_METHOD_NOT_FOUND is internally mapped to HTTP_NOT_FOUND (404).
28 // It should not be used for application-layer errors.
31 // RPC_INTERNAL_ERROR should only be used for genuine errors in bitcoind
32 // (for example datadir corruption).
35
61
66
84
87
114
119};
120
121#endif // BITCOIN_RPC_PROTOCOL_H
HTTPStatusCode
HTTP status codes.
Definition protocol.h:10
@ HTTP_BAD_REQUEST
Definition protocol.h:12
@ HTTP_BAD_METHOD
Definition protocol.h:16
@ HTTP_OK
Definition protocol.h:11
@ HTTP_SERVICE_UNAVAILABLE
Definition protocol.h:18
@ HTTP_UNAUTHORIZED
Definition protocol.h:13
@ HTTP_NOT_FOUND
Definition protocol.h:15
@ HTTP_FORBIDDEN
Definition protocol.h:14
@ HTTP_INTERNAL_SERVER_ERROR
Definition protocol.h:17
RPCErrorCode
Bitcoin RPC error codes.
Definition protocol.h:22
@ RPC_CLIENT_NODE_NOT_CONNECTED
Node to disconnect not found in connected nodes.
Definition protocol.h:77
@ RPC_WALLET_NOT_SPECIFIED
No wallet specified (error when there are multiple wallets loaded)
Definition protocol.h:111
@ RPC_WALLET_INVALID_ACCOUNT_NAME
Backwards compatible aliases.
Definition protocol.h:113
@ RPC_VERIFY_ALREADY_IN_CHAIN
Transaction already in chain.
Definition protocol.h:56
@ RPC_WALLET_INVALID_LABEL_NAME
Invalid label name.
Definition protocol.h:94
@ RPC_WALLET_UNLOCK_NEEDED
Enter the wallet passphrase with walletpassphrase first.
Definition protocol.h:98
@ RPC_WALLET_ALREADY_UNLOCKED
Wallet is already unlocked.
Definition protocol.h:107
@ RPC_OUT_OF_MEMORY
Ran out of memory during operation.
Definition protocol.h:44
@ RPC_PARSE_ERROR
Definition protocol.h:34
@ RPC_FORBIDDEN_BY_SAFE_MODE
Unused reserved codes, kept around for backwards compatibility.
Definition protocol.h:118
@ RPC_CLIENT_INVALID_IP_OR_SUBNET
Invalid IP/Subnet.
Definition protocol.h:79
@ RPC_MISC_ERROR
General application defined errors std::exception thrown in command handling.
Definition protocol.h:38
@ RPC_WALLET_INSUFFICIENT_FUNDS
Not enough funds in wallet or account.
Definition protocol.h:92
@ RPC_CLIENT_NODE_ALREADY_ADDED
Node is already added.
Definition protocol.h:73
@ RPC_WALLET_WRONG_ENC_STATE
Command given in wrong wallet encryption state (encrypting an encrypted wallet etc....
Definition protocol.h:103
@ RPC_METHOD_NOT_FOUND
Definition protocol.h:29
@ RPC_INVALID_PARAMS
Definition protocol.h:30
@ RPC_WALLET_ENCRYPTION_FAILED
Failed to encrypt the wallet.
Definition protocol.h:105
@ RPC_TRANSACTION_ALREADY_IN_CHAIN
Definition protocol.h:65
@ RPC_TYPE_ERROR
Unexpected type was passed as parameter.
Definition protocol.h:40
@ RPC_CLIENT_MEMPOOL_DISABLED
Chain errors.
Definition protocol.h:86
@ RPC_TRANSACTION_REJECTED
Definition protocol.h:64
@ RPC_TRANSACTION_ERROR
Aliases for backward compatibility.
Definition protocol.h:63
@ RPC_METHOD_DEPRECATED
RPC method is deprecated.
Definition protocol.h:60
@ RPC_CLIENT_NOT_CONNECTED
P2P client errors Bitcoin is not connected.
Definition protocol.h:69
@ RPC_INVALID_PARAMETER
Invalid, missing or duplicate parameter.
Definition protocol.h:46
@ RPC_IN_WARMUP
Client still warming up.
Definition protocol.h:58
@ RPC_WALLET_ERROR
Wallet errors Unspecified problem with wallet (key not found etc.)
Definition protocol.h:90
@ RPC_VERIFY_ERROR
General error during transaction or block submission.
Definition protocol.h:52
@ RPC_WALLET_NOT_FOUND
Invalid wallet specified.
Definition protocol.h:109
@ RPC_INTERNAL_ERROR
Definition protocol.h:33
@ RPC_WALLET_KEYPOOL_RAN_OUT
Keypool ran out, call keypoolrefill first.
Definition protocol.h:96
@ RPC_DATABASE_ERROR
Database error.
Definition protocol.h:48
@ RPC_CLIENT_IN_INITIAL_DOWNLOAD
Still downloading initial blocks.
Definition protocol.h:71
@ RPC_CLIENT_NODE_NOT_ADDED
Node has not been added before.
Definition protocol.h:75
@ RPC_DESERIALIZATION_ERROR
Error parsing or validating structure in raw format.
Definition protocol.h:50
@ RPC_WALLET_PASSPHRASE_INCORRECT
The wallet passphrase entered was incorrect.
Definition protocol.h:100
@ RPC_INVALID_REQUEST
Standard JSON-RPC 2.0 errors.
Definition protocol.h:26
@ RPC_VERIFY_REJECTED
Transaction or block was rejected by network rules.
Definition protocol.h:54
@ RPC_CLIENT_NODE_CAPACITY_REACHED
Max number of outbound or block-relay connections already open.
Definition protocol.h:83
@ RPC_INVALID_ADDRESS_OR_KEY
Invalid address or key.
Definition protocol.h:42
@ RPC_CLIENT_P2P_DISABLED
No valid connection manager instance found.
Definition protocol.h:81