You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Mark Ferguson <ma...@gmail.com> on 2009/02/09 22:46:47 UTC
UpdateResponse status codes?
Hello,
I am wondering if the UpdateResponse status codes are documented somewhere?
I haven't been able to find them. I know 0 is success..
Thanks,
Mark
Re: UpdateResponse status codes?
Posted by Jacob Singh <ja...@gmail.com>.
0 is actually a communication failure (can't connect at all).
200 is good
Solr returns 400s when if bails. I always thought this was strange,
because I thought 500 is an application error (what I would expect)
and 400 is a general HTTP error.
Best,
J
On Tue, Feb 10, 2009 at 7:22 AM, Koji Sekiguchi <ko...@r.email.ne.jp> wrote:
> Mark,
>
> I'm not solrj user, but I think you don't need to check status code.
> Solr server always return 0 for status when success. If something goes
> wrong,
> Solr server returns HTTP 400/500 response, then you'll get an Exception.
>
> Koji
>
> Mark Ferguson wrote:
>>
>> Hello,
>>
>> I am wondering if the UpdateResponse status codes are documented
>> somewhere?
>> I haven't been able to find them. I know 0 is success..
>>
>> Thanks,
>>
>> Mark
>>
>>
>
>
--
+1 510 277-0891 (o)
+91 9999 33 7458 (m)
web: http://pajamadesign.com
Skype: pajamadesign
Yahoo: jacobsingh
AIM: jacobsingh
gTalk: jacobsingh@gmail.com
Re: UpdateResponse status codes?
Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
Mark,
I'm not solrj user, but I think you don't need to check status code.
Solr server always return 0 for status when success. If something goes
wrong,
Solr server returns HTTP 400/500 response, then you'll get an Exception.
Koji
Mark Ferguson wrote:
> Hello,
>
> I am wondering if the UpdateResponse status codes are documented somewhere?
> I haven't been able to find them. I know 0 is success..
>
> Thanks,
>
> Mark
>
>