We do have error checking on the request and return the status codes
if there's something wrong with the request. As was said, this was
more for a case where a user passes in a correct request that should
return a list, but there are no matches. In any case, Chris's
solution was exactly what we needed. Thanks a lot!
On Oct 24, 8:32 am, Angel Pizarro <
delag...@gmail.com> wrote:
> Good point. In that case I would do as Chris suggested and provide the
> root with an empty set
>
> Angel Pizarro
>
> On Oct 23, 2009, at 6:54 PM, Jim Guistwite <
jguistw...@gmail.com> wrote:
>
>
>
> > Using the http status codes is a good idea. A quick search shows both
> > Digg and Twitter APIs
> > returning 404s under various conditions.
>
> > I'm not sure if one would use 404 for a list response or only for
> > individual items.
> > If I am asking for a particular item and it doesn't exist, I think 404
> > seems right. If I'm asking for a list
> > of items and none exist, perhaps an empty list is more appropriate.
> > The list exists but
> > there are no items contained in it.
>
> > On Fri, Oct 23, 2009 at 2:19 PM, Angel Pizarro <
delag...@gmail.com>
> > wrote:
> >> and to complete my thought, you could send back status 401 for
> >> unauthorized
> >> requests, 400 bad request format, 403 forbidden ...
> >> -angel
>
> >> On Fri, Oct 23, 2009 at 2:17 PM, Angel Pizarro <
delag...@gmail.com>
> >>>> On Fri, Oct 23, 2009 at 12:04 PM, gbright@vuzit <
theblackoi...@yahoo.com