The European Court of Human Rights has awarded damages to six Hungarian men, ruling that overcrowding and other problems in Hungary's prisons resulted in their "degrading treatment."

The ruling issued Tuesday said that the undignified conditions included the lack of privacy during toilet use, inadequate sleeping arrangements and insect infestation.

The applicants were awarded a total of 73,900 euros ($79,500) in damages, plus 12,150 euros ($13,000) in costs and expenses.

The court said Hungary could cut back overcrowding by, for example, reducing the number of people in pre-trial detention, as they made up 28 percent of all prisoners at the end of 2013.

The court said a further 450 similar applications are pending against Hungary.