The reaction of converting aromatic primary amine to diazonium salt is called diazotisation. To obtain chlorobenzene, benzene diazonium chloride is treated with cuprous chloride. This reaction is called Sandmeyer reaction.
Therefore, to convert aniline into chlorobenzene NaNO2/HCl,CuCl reagents are used.