mirror of https://github.com/apache/lucene.git
don't treat 404 special and lost the http response code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1363330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a965d6fdf7
commit
b1fb39754b
|
@ -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:"
|
||||
|
|
Loading…
Reference in New Issue