Proposed resolution for ISSUE-64 (status codes)

(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 fragment (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 Not 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).

PROPOSED RESOLUTION
Remove all MUSTs about status codes,
add that the server SHOULD return 400 for invalid triple patterns.
We can then also drop the requirement for servers to respond to HEAD.

Link: https://github.com/HydraCG/Specifications/issues/64

Received on Wednesday, 30 July 2014 13:26:02 UTC