Egyptian law differentiated imprisonment by severity and duration. [fact]
The second law, Qānūn al-Dākhiliyya, passed in 1834 as a generic law to organize the military camps, showed a much more refined conception of imprisonment. Instead of lumping together all offenders in one place for long periods, this law specified that there were to be three kinds of imprisonment. Art. 361 stipulated that, firstly, there was “light house arrest” (ḥabs ai-‘ayn al-khafīf) which should not exceed two months and in which the wrongdoer was kept aside in his own chamber and not allowed to be visited by anyone. Secondly, there was “heavy house arrest” (ḥabs al-‘ayn al-thaqīl) which was limited to one month and in which the offender was to be kept aside in his own chamber with a sentry watching him and in which he was not allowed to speak to anyone. Finally, there was imprisonment in the camp jail, the ḥabskhāna, which should not exceed fifteen days.
Builds on: "Military codes precisely calibrated offenses to their exact punishments."
Khaled Fahmy, All the Pasha_s Men_ Mehmed…, loc. 703