Re: [Webpush] Status Code for Negative Acknowledgements #49

Mark Nottingham <mnot@mnot.net> Thu, 15 October 2015 03:30 UTC

Return-Path: <mnot@mnot.net>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 665EE1B2FB2 for <webpush@ietfa.amsl.com>; Wed, 14 Oct 2015 20:30:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level:
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id upAgiai48ug5 for <webpush@ietfa.amsl.com>; Wed, 14 Oct 2015 20:30:37 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 30E5D1B2FAC for <webpush@ietf.org>; Wed, 14 Oct 2015 20:30:37 -0700 (PDT)
Received: from [192.168.0.18] (unknown [120.149.147.132]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 95E8522E1F4 for <webpush@ietf.org>; Wed, 14 Oct 2015 23:30:33 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <BY2PR0301MB0647B9C0BBAA6E4CAC9057F2833E0@BY2PR0301MB0647.namprd03.prod.outlook.com>
Date: Thu, 15 Oct 2015 14:30:30 +1100
Content-Transfer-Encoding: quoted-printable
Message-Id: <B48B008D-0C4D-40FC-BF7B-8D090B0B97D3@mnot.net>
References: <BY2PR0301MB0647B9C0BBAA6E4CAC9057F2833E0@BY2PR0301MB0647.namprd03.prod.outlook.com>
To: "webpush@ietf.org" <webpush@ietf.org>
X-Mailer: Apple Mail (2.2104)
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/EhaCyf-E_JFTvv6zoN4ELIw-D-4>
Subject: Re: [Webpush] Status Code for Negative Acknowledgements #49
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of potential IETF work on a web push protocol <webpush.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webpush>, <mailto:webpush-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webpush/>
List-Post: <mailto:webpush@ietf.org>
List-Help: <mailto:webpush-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webpush>, <mailto:webpush-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Oct 2015 03:30:39 -0000

[BCC'ing the HTTP WG]

Status codes must be potentially applicable to *all* resources, not use case specific (as this seems to be). See:
  http://httpwg.github.io/specs/rfc7231.html#considerations.for.new.status.codes

I'm especially concerned about suggestions in the issue to allocate "a range of status codes" for this purpose. 

I strongly suspect you don't need a status code, in that the semantics you're surfacing don't need to be available to HTTP implementations (e.g., generic servers and clients, intermediaries, caches). You have a very constrained use case and control over the payload; why can't this be a header or part of the body?

Cheers,


> On 15 Oct 2015, at 2:15 pm, Brian Raymor <Brian.Raymor@microsoft.com> wrote:
> 
> 
> For - https://github.com/webpush-wg/webpush-protocol/issues/49 - I've submitted a pull request to propose a 512 (Expired Resource) status code - https://github.com/webpush-wg/webpush-protocol/pull/50
> 
> Based on the Hypertext Transfer Protocol (HTTP) Status Code Registry -  http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml - 509 is the next unassigned 5XX status code, but there may be a conflict with unregistered use of 509:
> 
> https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_Error
> 
>  509 Bandwidth Limit Exceeded (Apache bw/limited extension)
>  This status code is not specified in any RFCs. Its use is unknown.
> 
> 510 and 511 are registered, skipping 509 which suggests an earlier attempt to avoid potential conflicts. 
> 
> 
> 
> 
> 
> 
> ...Brian
> 
> 
> _______________________________________________
> Webpush mailing list
> Webpush@ietf.org
> https://www.ietf.org/mailman/listinfo/webpush

--
Mark Nottingham   https://www.mnot.net/