+ " when executing request");
}
if (code == 402 || code == 406 || code == 408 || code == 411
|| (code >= 413 && code <= 499)) {
throw new ClientException("Http error " + code
+ " when executing request");
}
if (code == 501) {
throw new NotImplementedException("Http error " + code