pub fn rpc_error_with_code( code: i32, msg: impl Into<String>, ) -> ErrorObject<'static>
Constructs an internal JSON-RPC error with code and message