A tankless unit is a controller, a fan, a burner and a heat exchanger, and a fault code tells you which of those it has given up on.
Reading the fault
Flow. A shut valve, a clogged inlet screen, a stuck flow sensor, or scale narrowing the exchanger.
Ignition. Gas volume, the igniter, the flame sensor, or condensate that has not drained.
Temperature. A sensor out of range, or a mixing valve that is passing cold.
Venting. A blocked termination, a pressure switch that will not close, or recirculation at the flue.
Flow and capacity
The unit needs a minimum flow to fire, and the household's simultaneous demand can exceed what it can heat at winter inlet temperature. Two showers at once is a sizing answer, not a repair.
Scale
The exchanger's passages are narrow. Circulating a descaler through the service valves restores capacity where the metal is intact.
If it is the exchanger
A scaled or perforated exchanger on an older unit is replaced or the unit is, and that is a decision made with the model's parts cost in hand.