Convert errors in RPC server to new btcjson consts.