serverTransactionId);
if (restResponse.getStatus() != expectedStatusCode) {
String errorMessage = null;
if (restResponse.hasEntity()) {
try {
final ErrorView errorView = getResponseEntity(
ErrorView.class, restResponse);
errorMessage = errorView.getMessage();
} catch (final Throwable t) {
log.debug("Error getting or no error entity found", t);
}
}
throw new DNSAPIClientHttpException(