On the court's orders, Central Reserve Police Force personnel cordoned off court number 7, where Shrivastav was held in custody.
According to the latest information, his custody continued even beyond 2pm as the ruling Samajwadi Party government scrambled to come up with a proper response for the court.
Upadhaya had approached the court seeking adequate security from the government. The court had directed the government to provide the security in accordance with norms. The order, however, was not implemented.
Upadhaya had then moved a contempt petition, following which the court fixed Tuesday for the hearing.
Shrivastav earned the court's ire after failing to give a proper explanation for why the order had not been implemented.