throw new RedicetionException("Http error " + code
+ " when executing request");
}
if (code == 400) {
throw new BadRequestException("Http error " + code
+ " when executing request");
}
if (code == 401) {
throw new UnauthorizedException("Http error " + code