It’s called a let. In tennis, if a serve clips the net cord and still lands in the correct service box, the serve is replayed and doesn’t count.

If the serve hits the net and doesn’t land in the right service box, it’s a fault instead.