As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
FLIGHT 5095 - DURING JFK APPROACH RECEIVED A FLAP FAIL CAUTION MESSAGE AT 20 DEGREES, CREW DECLARED AN EMERGENCY, ABORTED APPROACH, THEN LANDED WITHOUT INCIDENT ON THE SECOND ATTEMPT. REPLACED THE RIGHT INBOARD FLAP INBOARD FLAP ACTUATOR.