[FOLD] replace rpc errors with new generic code.