On the return of the alternative, 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.