if (responseStatus >= 400 || responseStatus < 200) {
throw new LiveDocumentNotAvailableException("Invalid Status: " + responseStatus);
}
in = ByteStreams.limit(method.getResponseBodyAsStream(), maxRobotsSize);
return new RobotsTxtResource(IOUtils.toString(in));
} catch (IOException io) {
throw new LiveDocumentNotAvailableException(io.toString());
} finally {
if (in != null) {