Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/protocol.h
Show All 32 Lines | enum RPCErrorCode { | ||||
// RPC_INVALID_REQUEST is internally mapped to HTTP_BAD_REQUEST (400). | // RPC_INVALID_REQUEST is internally mapped to HTTP_BAD_REQUEST (400). | ||||
// It should not be used for application-layer errors. | // It should not be used for application-layer errors. | ||||
RPC_INVALID_REQUEST = -32600, | RPC_INVALID_REQUEST = -32600, | ||||
// RPC_METHOD_NOT_FOUND is internally mapped to HTTP_NOT_FOUND (404). | // RPC_METHOD_NOT_FOUND is internally mapped to HTTP_NOT_FOUND (404). | ||||
// It should not be used for application-layer errors. | // It should not be used for application-layer errors. | ||||
RPC_METHOD_NOT_FOUND = -32601, | RPC_METHOD_NOT_FOUND = -32601, | ||||
RPC_INVALID_PARAMS = -32602, | RPC_INVALID_PARAMS = -32602, | ||||
// RPC_INTERNAL_ERROR should only be used for genuine errors in bitcoind | // RPC_INTERNAL_ERROR should only be used for genuine errors in bitcoind | ||||
// (for exampled datadir corruption). | // (for example datadir corruption). | ||||
RPC_INTERNAL_ERROR = -32603, | RPC_INTERNAL_ERROR = -32603, | ||||
RPC_PARSE_ERROR = -32700, | RPC_PARSE_ERROR = -32700, | ||||
//! General application defined errors | //! General application defined errors | ||||
//!< std::exception thrown in command handling | //!< std::exception thrown in command handling | ||||
RPC_MISC_ERROR = -1, | RPC_MISC_ERROR = -1, | ||||
//!< Unexpected type was passed as parameter | //!< Unexpected type was passed as parameter | ||||
RPC_TYPE_ERROR = -3, | RPC_TYPE_ERROR = -3, | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |