only render HTML error pages when body is empty