When should petition for review versus application for writ of error be filed

When should a litigant file a petition for review versus an application for writ of error?