Move error pages to frontend