Photos of the ceremony on November 12, during the HSC exam period, went viral, prompting the intervention from their furious parents, who were away at the time.
"Clearly, this was a silly teenage idea," the father of one of the boys said in a statement to The Daily Telegraph.
"However, no legally binding ceremony took place and we shut down the planned private celebratory event as soon as we found out about it and, thankfully, nobody was put at risk.
"Furthermore, we immediately engaged a security firm to ensure that if anyone tried to attend, they would be turned away – and no one did actually turn up."
He said the family was "fully aware of the extremely high level of importance of complying with all aspects of the coronavirus restrictions".
"Our son has apologised to our family, as well as to the other families who were involved, and we have made it clear to him how important compliance with the coronavirus restrictions is," the dad said.
A friend of the boys said the plan would go down as a "great story".
He said the address of the party got leaked after the first social media post, foiling the plan.
"They were like, 'The only way we can do this is by getting a marriage exemption' so these two best friends got married," he said.
"And it all worked out except one of their parents didn't know, they found out through the social media post, cancelled their holiday, came back and the after-party didn't eventuate."