On a Samsung range, C-22 points at a temperature sensor on the main control board. Restart the oven, and if the code stays, Samsung's manual says to cut power to the range briefly and reconnect.
What it means
Control board sensor check
Samsung gas slide-in range (NSG6**87 user manual), NSG6**87****** Major
Regions: United States
What the manual says
The manual ties this code to a temperature sensor on the main control board. Restart the oven first; if the code persists, disconnect power to the range for a short time and reconnect it.