case 400:
case 401:
case 403:
throw buildException(content, tokenHolder.hasToken());
case 404:
throw new NotFoundException(request.getRequestLine().getUri());
case 500:
throw new InternalErrorException();
default:
throw new ServerResponseException("Unknown error, status: " + statusCode + ", content: " + new String(content));
}