77 . If any answer is substantially defective in any of the particulars hereinbefore defined, or is argumentative or prolix, or contains matter irrelevant to the action, the court may, by an order to be endorsed thereon, reject the same or return it to the party by whom it was made, for amendment within a time to be fixed by the court, imposing such terms as to costs or otherwise as the court thinks fit.
If the answer is rejected or left unamended as ordered, the defendant shall be regarded as having failed to file answer.
The order so endorsed shall specify the ground of the rejection. *Rejection and amendmentof answer.*