Updated

A plane that was about to depart Kennedy Airport for Florida was forced to return to the gate Wednesday when a 24-year-old man overdosed on heroin and anxiety medication, officials said.

The JetBlue plane was on the taxiway and about to take off when the man, who lives in Bethpage, Long Island, started foaming at the mouth around 10:50 p.m.

The flight returned to the terminal and was boarded by Port Authority cops Eric Stern and Sean Pomerantz, who found the distressed man floating in and out of consciousness.

The man also appeared confused and was having trouble breathing, officials said.

The officers determined the man was under the influence of heroin and anti-anxiety pills and administered a dose of Narcan, a drug that reverses the effects of an overdose.

The man’s condition improved and he was rushed to Jamaica Hospital for treatment, officials said.

Click for more from the New York Post.