Locality in coding theory