On 11/20/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: Wow, i had completley forgotten that SolrException contained an HTTP
: status code.

Hmmm... acctually, the javadocs for SolrException are a little vague on
the meaning of "code" and there are at least a few places where it's set
to a value that is not a legal HTTP status code...

None of these cases actually bubble back to an HTTP response code.
Schema parsing is done at startup, and the update servlet always
returns 200 (with error in the XML response).

Perhaps the update servlet should use HTTP error codes as well.

-Yonik

./src/java/org/apache/solr/schema/IndexSchema.java:      throw new 
SolrException(1,"Schema Parsing Failed",e,false);
./src/java/org/apache/solr/schema/IndexSchema.java:      throw new 
SolrException(1,"analyzer without class or tokenizer & filter list");
./src/java/org/apache/solr/schema/IndexSchema.java:       throw new 
SolrException(1,"TokenizerFactory must be specified first in analyzer");
./src/java/org/apache/solr/schema/IndexSchema.java:    throw new 
SolrException(1,"undefined field "+fieldName);
./src/java/org/apache/solr/update/DirectUpdateHandler.java:    if (idField == null) throw 
new SolrException(2,"Operation requires schema to have a unique key field");
./src/java/org/apache/solr/update/DirectUpdateHandler.java:    if (idField == null) throw 
new SolrException(2,"Operation requires schema to have a unique key field");
./src/java/org/apache/solr/update/UpdateHandler.java:          throw new 
SolrException(1,"error parsing event listevers", e, false);
./src/java/org/apache/solr/update/UpdateHandler.java:          throw new 
SolrException(1,"error parsing event listeners", e, false);

Reply via email to