Re: Bookmark 'stability'

Paul Cohen <[email protected]>
Newsgroups gmane.comp.web.services.rest
Message-ID <CAA1Y72EuNAGkA+a4q9Lrd4LOZaExjEcrxdvpOBt6pPWh+Wd-Wg@mail.gmail.com>
Hi

On Fri, Sep 28, 2012 at 12:20 PM, Ruben Verborgh
<[email protected]> wrote:
>
> That means we agree, because, to return a status code for a certain URI,
> it has to remain stable.
>
> What, however, would not be cool,
> is if /things/a gave a 404,
> but /things/b happily provided the resource.
> This would mean that the semantic validity of the /things/a mapping has not been maintained.

The HTTP spec says that for 301 (Moved Permanently):

"The requested resource has been assigned a new permanent URI and any
future references to this resource SHOULD use one of the returned
URIs."

and the spec for HTTP status Code 308 (Permanent Redirect) says:

"The target resource has been assigned a new permanent URI and any
future references to this resource SHOULD use one of the returned
URIs.

I'm not sure what the practical convention for 301, or 308, is, but to
me it sounds like the server could chose to return a 404 or maybe more
appropriately a 410 (Gone) in the future.

/Paul

-- 
Paul Cohen
www.seibostudios.se
mobile: +46 730 787 035
e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.