1When it clearly appears that the arrest or detention was performed because of a mistake concerning a person’s identity or in infringement of the law requirements or when the arrest or detention order have already lost their effect due to expiry of the time limit for the request of court validation, the prosecutor shall order, by reasoned decision, that the arrested or detained person be immediately released. In such cases, the release shall also be ordered by the judicial police officer, who immediately notifies the prosecutor of the place where the arrest or detention took place.