Any sheriff or other officer or person having custody of any prisoner committed on any civil or criminal process of any court who shall neglect to give such prisoner a copy of the process or order of commitment by which he or she is imprisoned within 6 hours after demand made by the prisoner, or any one on behalf of the prisoner, shall forfeit to the prisoner or party affected not exceeding $500. This Section shall not apply to the Illinois Department of Corrections.
735 ILCS 5/10-105