The statute governs the writ or show-cause order, return, hearing, and decision.
Its final paragraph directs the court to dispose of the matter as law and justice require.
Material limitations
Section 2243 does not itself create an entitlement to credits, release, placement, or another execution benefit. The substantive source of law and controlling precedent determine the permissible relief.