W3C home > Mailing lists > Public > public-hydra@w3.org > July 2014

RE: Proposed resolution for ISSUE-64 (status codes)

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Thu, 31 Jul 2014 15:38:50 -0400
To: <public-hydra@w3.org>
Message-ID: <04cb01cfacf7$0f0c7d10$2d257730$@gmx.net>
On 30 Jul 2014 at 13:25, Gregg Kellogg wrote:
> On Jul 30, 2014, at 6:25 AM, Ruben Verborgh wrote:
>> (Copied from another thread for clarity.)
>> ISSUE 64: Review HTTP status codes for non-existing / empty fragments
>> The current spec says: 	. reply with status code 200 OK if the
>> (page) with the given URL exists and is non-empty, i.e., one or more
>> triples match the selector; 	. reply with status code 404 Not Found if
>> the fragment (page) with the given URL does not exist or is empty,
>> i.e., no triples match the selector. 	. reply with status code 404
>> Found if the selector is invalid i.e., the parameter
> values are not in the domain of the selector. This is the case if, for
instance, a literal is used
> as subject.
>> However, it is argued that 404 might not be the best status code for all
cases. 400 might
> be appropriate for invalid requests that will never have matches (i.e.,
literal as subject -
> case 3).
> Does this imply that if LD Fragments are used for Hydra Collections that
you could not
> return an empty collection? Returning an empty collection would be useful
for describing
> operations, say, to add something to the collection.

No, it didn't imply that. A 404 can include a response body which means you
can return an empty collection.

Markus Lanthaler
Received on Thursday, 31 July 2014 19:39:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:42 UTC