def _do_error(self, err):
        self._want_close = True
        self._no_process = True
        self._stream.close(False)
        self._stream = None
        if not self._requests:
            return

        # Pop off the request that had an error, and clear its timeout.
        request = self._requests.pop(0)
        if request._timeout_timer:
            request._timeout_timer()

        self._safely_call(request.session.on_error, request.response, err)

        # Keep processing, if needed.
        self._process()
Abort the current request with a 404 (Not Found) response code.
dataset/ETHPy150Open ecdavis/pants/pants/http/client.py/HTTPClient._do_error--crossover with--dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/status.py/raise_404