Apache Lucene open-source search software
don't treat 404 special and lost the http response code
Mark Robert Millerb1fb39754b4d
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.javaindex ad3c5bcb4a8..f02521b23cd 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java@@ -369,9 +369,6 @@ public class HttpSolrServer extends SolrServer {+ " sent back a redirect (" + httpStatus + ").");}break;- case HttpStatus.SC_NOT_FOUND:- throw new SolrServerException("Server at " + getBaseURL()- + " was not found (404).");default:throw new SolrException(SolrException.ErrorCode.getErrorCode(httpStatus), "Server at " + getBaseURL()+ " returned non ok status:" + httpStatus + ", message:"