On LG mini-split systems, code 21 is an outdoor unit drive fault: the compressor's direct-current voltage went too high. The manual says to contact LG support if a power cycle does not clear it.
What it means
Compressor drive power fault
LG mini-split (Single Zone Art Cool Mirror installation manual), LA090HSV4, LA120HSV4, LA180HSV4 Major
Regions: United States
What the manual says
The outdoor unit reports a drive fault, listed as an IPM fault, caused by the compressor's direct-current voltage rising too high.
When to call a technician
The manual says to power the unit down and back up once, to contact LG support if the code returns, and not to attempt a repair yourself.