Rewrite html error pages