throw new ConflictException("Http error " + code
+ " when executing request");
}
if (code == 410) {
throw new GoneException("Http error " + code
+ " when executing request");
}
if (code == 412) {
throw new PreconditionFailedException("Http error " + code