Which of the following statements are correct with respect to the writ of habeas corpus?
1. It is used to secure a person who has been detained illegally.
2. It can be issued against both public authorities and private individuals.
3. It is not issued where the detention is outside the jurisdiction of the court.
4. It can be sought by any interested party and not necessarily by aggrieved person.
Select the correct option using the code given below: