Implement standard RPC errors.
Send error replies for walletpassphrase