X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=enrichment-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fenrichment%2Frepository%2FInfoTypes.java;fp=enrichment-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fenrichment%2Frepository%2FInfoTypes.java;h=c23875b6b862de4ceb31ea7ce0a631b59d5509f6;hb=4cd9f067e6985a28c045dd672bd86581b8b5b1a9;hp=85664f6b6e6dcb94b60cb6fda635f2e0c8f64aa1;hpb=6ab9cd9df333ab3b5ed1ce6957dcea8f20d5c28d;p=nonrtric.git diff --git a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/InfoTypes.java b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/InfoTypes.java index 85664f6b..c23875b6 100644 --- a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/InfoTypes.java +++ b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/InfoTypes.java @@ -42,6 +42,7 @@ import org.oransc.enrichment.configuration.ApplicationConfig; import org.oransc.enrichment.exceptions.ServiceException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.http.HttpStatus; import org.springframework.util.FileSystemUtils; /** @@ -84,7 +85,7 @@ public class InfoTypes { public synchronized InfoType getType(String id) throws ServiceException { InfoType type = allEiTypes.get(id); if (type == null) { - throw new ServiceException("Information type not found: " + id); + throw new ServiceException("Information type not found: " + id, HttpStatus.NOT_FOUND); } return type; }