John “Junior” Gotti’s racketeering and murder trial was briefly delayed yesterday when the Gambino family scion was unable to immediately return to court after an apparent bathroom break due to “some stomach discomfort.”

Defense lawyer Charles Carnesi said Gotti — who appeared unusually pale and drawn — has been suffering from a digestive disorder since Monday.

“He’s been going back and forth,” Carnesi said, without elaboration.

At the end of the day, Gotti, 45, grimaced and clutched at his gut as he rose from his chair in the courtroom, managing only a weak smile and a slight wave to his supporters before leaving.

During a sidebar discussion about Gotti’s condition, Judge Kevin Castel said: “I’ll see if I can get special attention to that.”