On 8/3/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
[...]
> You are right and I've updated the behavior in SVN trunk. Now, if
> Resource.getRepresentation(Variant) returns 'null', the Resource.handleGet()
> method returns a NOT_FOUND (404) status.
>
> Note that we already generate a 406 if no variant is acceptable for the
> client but for the current special case, it seems that a 404 is a better
> default status.

Sounds good to me.

> In case a different status is preferred by the developer, the
> Resource.handleGet will preserve it. It only changes it to 404 if no status
> exists or if it is a success status.

Perfect!

Rock on,
John

Reply via email to