private void handleResponseError(Throwable error) {
        log.warn("Can't send response to client: {}", error.getMessage());
        context.getProxyRequest().reset(); // drop connection to stop origin response
        context.getResponse().reset();     // drop connection, so that partial client response won't seem complete
        finalizeRequest();
    }
Called when proxy failed to send response to the client.
server/src/main/java/com/epam/aidial/core/server/controller/DeploymentFeatureController.java