Determine the error code based on which LEDs are lit.