A judgment of dismissal with or without prejudice shall be rendered and the effects thereof shall be regulated in accordance with the provisions of Articles 1671 through 1673.