

def _error_response(self, response, env, start_response):
    '\n        Sends the error response to the remote client, possibly resolving a\n        custom error response body based on x-container-meta-web-error.\n\n        :param response: The error response we should default to sending.\n        :param env: The original request WSGI environment.\n        :param start_response: The WSGI start_response hook.\n        '
    if (not self._error):
        start_response(self._response_status, self._response_headers, self._response_exc_info)
        return save_response_exc_info
    save_response_status = self._response_status
    save_response_headers = self._response_headers
    save_response_exc_info = self._response_exc_info
    resp = self._app_call(make_env(env, 'GET', ('/%s/%s/%s/%s%s' % (self.version, self.account, self.container, self._get_status_int(), self._error)), self.agent, swift_source='SW'))
    if is_success(self._get_status_int()):
        start_response(save_response_status, self._response_headers, self._response_exc_info)
        return resp
    start_response(save_response_status, save_response_headers, save_response_exc_info)
    return response

dataset/ETHPy150Open openstack/swift/swift/common/middleware/staticweb.py _StaticWebContext._error_response/VarMisuse@44/177 `response`->`save_response_exc_info`