Apparently it wasn’t the cockpit door codes, it was the cockpit doorbell code.
The airline periodically changes codes that need to be punched into a keypad on the outside of the cockpit door to request entry to the flight deck. Even ringing a chime alerting the cockpit to open the door from the inside requires a specific code, this person said.