You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Yonik Seeley <yo...@apache.org> on 2008/02/04 20:58:54 UTC
parse exception results in 500 error
Right now, a parse exception results in a 500 http error code, when it
should be 400.
There are a number of places this could be handled, but I'm thinking
in this case it should be done right at the source (that
QParser.parse() and getQuery() should throw SolrExceptions with 400
error codes instead of ParseExceptions.
Thoughts?
-Yonik
Re: parse exception results in 500 error
Posted by Ryan McKinley <ry...@gmail.com>.
agree -- 400 with a meaningful message is a better error.
Yonik Seeley wrote:
> Right now, a parse exception results in a 500 http error code, when it
> should be 400.
> There are a number of places this could be handled, but I'm thinking
> in this case it should be done right at the source (that
> QParser.parse() and getQuery() should throw SolrExceptions with 400
> error codes instead of ParseExceptions.
>
> Thoughts?
>
> -Yonik
>