public void saveContent(final File file) throws IOException {
        assertNotConsumed();
        try {
            final int status = response.getCode();
            if (status >= HttpStatus.SC_REDIRECTION) {
                throw new HttpResponseException(status, response.getReasonPhrase());
            }
            try (FileOutputStream out = new FileOutputStream(file)) {
                final HttpEntity entity = this.response.getEntity();
                if (entity != null) {
                    entity.writeTo(out);
                }
            }
        } finally {
            this.consumed = true;
            this.response.close();
        }
    }
Handles the response using the specified {@link HttpClientResponseHandler}
httpclient5-fluent/src/main/java/org/apache/hc/client5/http/fluent/Response.java