UnAuthorizedAccessTokenException {
URL url = config.resolveURL(String.format("streams/%s/info", streamId));
HttpResponse response = restClient.execute(HttpMethod.GET, url, config.getAccessToken(),
HttpURLConnection.HTTP_NOT_FOUND);
if (response.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
throw new StreamNotFoundException(streamId);
}
return ObjectResponse.fromJsonBody(response, StreamProperties.class).getResponseObject();
}