Closed RubenVerborgh closed 10 years ago
Yes, and my view is that for the second case none of the 4xx codes is appropriate. An empty set of triples is equvalent to a blank HTML page which can be delivered with HTTP code 200.
Reasons for keeping 404 for empty pages:
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.
http://lists.w3.org/Archives/Public/public-hydra/2014Jul/0187.html
Ruben, is the idea to track the remaining normative statements about status codes and other HTTP stuff in #63 or shall we open a separate issue for this?
I would track this in #63 indeed if that's fine.
Sure. We can organize it in whatever way we like.. we just need to make sure to not forget things we’ve discussed.
The current spec says:
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).
Relevant parts of the discussion: