Fixed HttpRequest from sending error page content.