The penalties provided in the next preceding article shall be imposed upon the public officer or employee who shall detain any person for some legal ground and shall fail to deliver such person to the proper judicial authorities within the period of: six hours, for crimes or offenses punishable by light penalties, or their equivalent; nine hours, for crimes or offenses punishable by correctional penalties, or their equivalent; and eighteen hours, for crimes or offenses punishable by afflictive or capital penalties, or their equivalent.
In every case, the person detained shall be informed of the cause of his detention and shall be allowed, upon his request, to communicate and confer at any time with his attorney or counsel.