As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
DFW - CREW REPORTED THE RIGHT MAIN GEAR DOOR INDICATED UNSAFE AND THE AMBER *GEAR DOOR OPEN* LIGHT REMAINED ILLUMINATED. EMERGENCY DECLARED FLIGHT RETURNED DFW LANDED WITHOUT INCIDENT. AIRCRAFT REMOVED FROM SERVICE. REPLACED RIGHT MAIN LANDING GEAR RETRACT ACTUATOR. SYSTEM GROUND CHECK NORMAL OPERATION.