W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2011

Re: Additional HTTP Status Codes - draft-nottingham-http-new-status-02

From: Mark Nottingham <mnot@mnot.net>
Date: Sun, 23 Oct 2011 16:49:08 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-Id: <40DF32AC-63D4-4260-88F6-F1CD1C91670D@mnot.net>
To: Roy T. Fielding <fielding@gbiv.com>

On 22/10/2011, at 12:53 PM, Roy T. Fielding wrote:

> On Oct 21, 2011, at 5:39 PM, Mark Nottingham wrote:
>> Like I said, I'm not necessarily against 3xx.
>> I'm a *bit* concerned that we've had a fair amount of attention on the latest draft, and there's a certain amount of momentum as a result.
>> If there's a tangible benefit to switching, that's great; however, it *looks* like there are arguments / reasons for all of the status codes (we started at 4xx, now 5xx, next 3xx? Perhaps we should consider 1xx too? ;)  So, all else equal, I'd rather just leave it as-is. 
>> In any case, if we are going to change, it should be done soon.
> Yep... any chance you could add a few pages to redbot that responds
> using different statuses, so we can see which pukes less on browsers?
> I'd do it locally but am strapped for time at the moment.

Not really a redbot thing, just a couple of .asis pages, I think.


I tested IE6/8/9, Safari 5.1.1, FF7.0.1, Opera 11.50 and Chrome (whatever it is now).

All of them displayed the text/plain of the 511 response.

All *except* Safari displayed the text/plain of the 311 response; it followed the Location header as if it were a redirect.

So, I don't think we can put this on 3xx with a Location header -- automatically following it without understanding the semantics is what we don't want, and if Apple's HTTP stack makes that assumption, pretty much an OSX program using HTTP won't see the benefit of this new status code.

It's a bit of a pity, as I agree it would be nice to surface this in the Location header. We (httpbis now) might want to tighten up the semantics of Location to make it clear that its semantics are attached to / activated by the status code; it alone doesn't signify a redirect.

Back to the status code, I think our options are:

511 + Location or a Link header (if we want to surface the link in headers)
311 + Link header (if we want to surface the link in headers)

As before, I'm slightly inclined towards 511 (could go either way on the link relation), but don't mind 311 (as long as we do so soon).

Mark Nottingham   http://www.mnot.net/
Received on Sunday, 23 October 2011 05:49:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:13:54 UTC