Carboxylic acids react with chlorine or bromine in presence of small amount of red phosphorous to give alpha halo carboxylic acids. For Hell Volhard Zelinsky reaction molecule must have at least one α hydrogen atom.
Example- R-CH2-COOH ---P/Br2---> R-CHBr-COOH
Mechanism-