Sobre habeas corpus é correto afirmar: