As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
BOS - FLT 945 - FOLLOWING TAKEOFF ROTATION FROM BOS, THE RIGHT MAIN LANDING GEAR UNSAFE LIGHT REMAINED ILLUMINATED WITH GEAR HANDLE IN THE UP OR OFF POSITION. CREW DECIDED TO RETURNED TO FIELD AT BOS WHERE THE FLIGHT LANDED WITHOUT FURTHER INCIDENT. NO EMERGENCY WAS DECLARED. MAINTENANCE REMOVED AND REPLACED THE RIGHT MAIN LANDING GEAR UPLOCK SENSOR. OPERATIONAL CHECK GOOD PER MM 32-61. (M)