A party to a proceeding by habeas corpus may appeal from the judgment of the court refusing to allow the writ or a final judgment therein in like manner and with like effect as in an action. No question once finally determined upon a proceeding by habeas corpus shall be re-examined upon another or subsequent proceeding of the same kind.