[OTDev] filtering resources returns empty list : 404 or 200 ?
Martin Guetlein martin.guetlein at googlemail.comTue May 3 14:05:48 CEST 2011
- Previous message: [OTDev] Validation server down
- Next message: [OTDev] filtering resources returns empty list : 404 or 200 ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [OTDev] Validation server down
- Next message: [OTDev] filtering resources returns empty list : 404 or 200 ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Development mailing list