116117118119120121122123
return sd; } else { log.info("Error retrieving Sword Service Document from " + serviceDocUrl); throw new HttpException("No service document available - Http status code " + status); } }
223224225226227228229230231
} else { String error = status.getCode() + " " + status.getMessage() + " - " + resp.getEntry().getSummary().getContent(); log.info("Error depositing Sword package : " + error); throw new HttpException(error); } }