§5512. Writ not available
The following persons shall not of right have such writ:
1. Persons committed to jail for certain offenses. Persons committed to or confined in prison or jail on suspicion of treason, felony or accessories before the fact to a felony, when the same is plainly and specifically expressed in the warrant of commitment;
2. Persons committed on civil process. Persons committed in execution of civil legal process or on mesne process on any civil action on which they are liable to be arrested or imprisoned.