On the return of the alternative writ, or the day on which the application for the writ is noticed, the party on whom the writ or notice has been served may show cause by answer under oath made in the same manner as an answer to a complaint in a civil action.
N.D.C.C. § 32-34-05