there is the implication that, assuming petitioner’s contention to be correct, such a holding would not justify his adjudging the warden to be in contempt of the court’s mittimus.
In Baglin v. Cusenier Co., 221 U. S. 580, it was held that one who, relying on an apparently legal justification, deviates from the terms of a decree may not be punished for contempt even though such apparent justification is subsequently judicially determined to have no merit. However, it has been held that a motion or petition to adjudge a warden or custodial officer in contempt of an order of commitment is an appropriate means to correct abuses. Howard v. State, 28 Ariz. 433; In Re Birdsong, 39 Fed. 599.
In these cases, however, and we find none in point where the facts are to the contrary, the confinement and treatment of the inmates were cruelly ’abusive of the court’s orders on the face of the allegations. On the basis of the allegations in the Howard case, the Arizona court held that the superior court from which the mittimus issued should order the custodial officer to show cause why the alleged conditions existed, if in fact they did exist. The court concluded that if on the return it should be found that there was reasonable necessity in the course of the prison discipline for such treatment of petitioner, the rule ordering show ¡cause should be discharged.
In the instant cause- the trial justice recognized and followed the reasoning of the Arizona court although he made no reference to- that decision. He reviewed the nature of petitioner’s confinement and the treatment in connection therewith. In his decision he stated: “He is given the same bill of fare, the same clothes, given opportunity to have a radio, given opportunity to have some exercise, given ¡opportunity to go- to church, given opportunity to read, but he is ' confined because of a determination that he is potentially dangerous and has