[FOLD] Move ErrorCodes to rpc module