if (!resp.isSuccess()) {
if (resp.getStatusCode() == HttpStatus.SC_PRECONDITION_FAILED) {
if (storeMeta.hasIfNoneMatch() && storeMeta.getIfNoneMatch()) {
throw new MatchFoundException();
} else if (storeMeta.hasIfNotModified() && storeMeta.getIfNotModified()) {
throw new ModifiedException();
}
}
throw new IOException(resp.getStatusCode() + " " + resp.getBodyAsString());
}