diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.java index 831f81e3da8..e7751026bf1 100644 --- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java +++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java @@ -1280,7 +1280,7 @@ public class CoreContainer { } else { String msg = "Already creating a core with name '" + coreName + "', call aborted '"; log.warn(msg); - throw new SolrException(ErrorCode.SERVER_ERROR, msg); + throw new SolrException(ErrorCode.CONFLICT, msg); } } CoreDescriptor cd = new CoreDescriptor(coreName, instancePath, parameters, getContainerProperties(), getZkController());