throw new MethodNotAllowedException("Http error " + code
+ " when executing request");
}
if (code == 407) {
throw new ProxyAuthenticationRequiredException("Http error " + code
+ " when executing request");
}
if (code == 409) {
throw new ConflictException("Http error " + code