As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
AFT SERVICE DOOR OPEN MSG IN FLIGHT. R2 DOOR SHOWED AS OPEN ON STATUS PAGE FOR APPROX 10 MINUTES - NO CHANGE IN PRESSURIZATION. DECLARED EMERGENCY, LANDED WITHOUT INCIDENT. FOUND R2 DOOR LATCH SENSOR TO BE OUT OF ADJUSTMENT. ADJUSTED R2 DOOR LATCH SENSOR.