[OTDev] filtering resources returns empty list : 404 or 200 ?

Nina Jeliazkova jeliazkova.nina at gmail.com
Tue May 3 14:10:02 CEST 2011


Martin, All,

As you know my preference is for 404 (for it has the semantic of "Resource
Not Found" ).

Nina

On 3 May 2011 15:05, Martin Guetlein <martin.guetlein at googlemail.com> wrote:

> Hello All,
>
> when filtering a OpenTox resource list with a search param (e.g.
> http://apps.ideaconsult.net:8080/ambit2/dataset?search=test),
> should the status code be 404 (not found), or 200 for an empty list? (e.g.
> http://apps.ideaconsult.net:8080/ambit2/dataset?search=emptylist)
>
> I would vote for 200 (more consistent to an un-filtered list of resources,
> e.g. http://apps.ideaconsult.net:8080/ambit2/dataset).
>
> (On the other hand, 404 might be more intuitive, e.g.: No, there is no
> validation for model 120732:
>
> http://opentox.informatik.uni-freiburg.de/validation?model=http://apps.ideaconsult.net:8080/ambit2/model/130732
> )
>
> Both is fine for me, but we should agree on a common solution.
>
> Regards,
> Martin
> <http://opentox.informatik.uni-freiburg.de/validation?model=ambit>
>
> --
> Dipl-Inf. Martin Gütlein
> Phone:
> +49 (0)761 203 8442 (office)
> +49 (0)177 623 9499 (mobile)
> Email:
> guetlein at informatik.uni-freiburg.de
> _______________________________________________
> Development mailing list
> Development at opentox.org
> http://www.opentox.org/mailman/listinfo/development
>



More information about the Development mailing list