862. If the Judge before whom the writ is returned is in doubt as to the truth of the facts alleged in the return, he or she may admit to bail the person so confined or restrained, upon his or her entering into recognizance with one or more sureties, or, in the case of infancy or coverture, upon security being given by recognizance in a reasonable sum, for his or her appearance before the Court, on a fixed day during the next term, and from day to day, to abide such order as the Court may make.