private void consumeAndCloseResponseContent(final ClassicHttpResponse response) {
        final byte[] buffer = new byte[1024];
        try (final InputStream inputStream = response.getEntity().getContent()) {
            if (inputStream != null) {
                //noinspection StatementWithEmptyBody
                while (inputStream.read(buffer) > 0) {
                }
            }
        } catch (final IOException ioex) {
            LOGGER.debug(ioex.getMessage(), ioex);
        }
    }
Checks the response code and stroom status for the connection and attributeMap.
Either returns 200 or throws a {@link StroomStreamException}.

@return The HTTP response code
@throws StroomStreamException if a non-200 response is received
stroom-proxy/stroom-proxy-app/src/main/java/stroom/proxy/app/handler/HttpSender.java