Add Error enum to JSON rpc client
Add Error enum to JSON rpc client

Closes: #5159
Approved by: dmitri-perelman

libra/libra,aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core