GENERAL PART
Section One : GENERAL PROVISIONS
CHAPTER 2. PRINCIPLES OF CRIMINAL PROCEEDINGS
Article 11. Immunity of Person
5. The court, as well as the agency for inquest, the investigator, and the prosecutor shall be obligated to promptly order the release of any detained person, if the detention is not lawful. The head of administration of a detention facility shall have no right to place, without a warrant of the court or any other grounds prescribed by this Code, any person into custody, and shall be obligated to release any person, whose detention period has expired
Rights during investigation - arbitrary arrest or detention and deprivation of liberty
EDIT.