GENERAL PART
SECTION I. GENERAL PROVISIONS
CHAPTER 2. PRINCIPLES OF CRIMINAL PROCEDURE
Article 11. Inviolability of the Person
(2) A court, prosecutor, investigator shall immediately release a person illegally detained or arrested, illegally put in a medical institution, or a person who was under arrest for a period exceeding the limitation provided for by law or by the court decision.
Rights during investigation - arbitrary arrest or detention and deprivation of liberty
EDIT.