for-GET / http-decision-diagram

An activity diagram to describe the resolution of HTTP response status codes, given various headers.
https://github.com/for-GET/http-decision-diagram/blob/master/doc/2013-06-10-http-hell-no.md
Apache License 2.0
3.61k stars 196 forks source link

representation exists #30

Closed andreineculau closed 10 years ago

andreineculau commented 11 years ago

Thanks to @mootboy @kvakvs @sstrigler - a possible enhancement popped up today - the retrieve:missing callback checks if the resource is missing, but not if the representation is missing, which is what 404 is supposed to check against.

alternatives:

mootboy commented 11 years ago

In the basho webmachine style I'd say replace the atom definitions for outputting stuff and replace them with a representation_exists callback as the last node before 200 / 204 and now 404. But that's basho, dunno about hyper ;)

andreineculau commented 10 years ago

I have double-checked my diagram, and it is possible to check in the missing callback that either the entire resource or just the specific representation (decided in the Accept block) is missing or not.

I think the added documentation is enough to "fix" this.