Re: [Webpush] Proposed 5xx status code for WebPush

Martin Thomson <martin.thomson@gmail.com> Thu, 19 November 2015 18:02 UTC

Return-Path: <martin.thomson@gmail.com>
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 9163B1B33B0 for <webpush@ietfa.amsl.com>; Thu, 19 Nov 2015 10:02:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=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 edwRLcfEiMpt for <webpush@ietfa.amsl.com>; Thu, 19 Nov 2015 10:02:49 -0800 (PST)
Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4CC081B33A5 for <webpush@ietf.org>; Thu, 19 Nov 2015 10:02:49 -0800 (PST)
Received: by igcph11 with SMTP id ph11so130098902igc.1 for <webpush@ietf.org>; Thu, 19 Nov 2015 10:02:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HHW5KH5rWdn89eedg3X+gnBvY1BIN44+LlpYNXSb6Wg=; b=kA8+TWO41e4o60lS1zK7wYL3Rwydj7akW/pSgSsPMiuABGYttWhJMeufq+4NgkSB/V OvJsN5YQiJ+5/AJqTt4nNulK4DPqvJkpimiVMQhQ2VVr2huuWAVzB6MygAnNTPBEhE9F yZY39jzCWLDoF9zqlgyblisIijOGwZHM2sJW0+mKSiLNrGKZ8+m2XWSMrrHTEK6U/G3W 0ISBlRQwnvb2/+DL26dviduapB7q4qjwd1cbVoVnTD44xmPMELm6lNGk4LuRkdaTYJze eanYcLdPQgIS0by6qzm+ILOVHFYlIIx7A65YD9i7b0/WmvdkoCVenVrVU2krTgjfQKJW 7atA==
MIME-Version: 1.0
X-Received: by 10.50.221.36 with SMTP id qb4mr15432232igc.77.1447956168347; Thu, 19 Nov 2015 10:02:48 -0800 (PST)
Received: by 10.36.155.139 with HTTP; Thu, 19 Nov 2015 10:02:48 -0800 (PST)
In-Reply-To: <E08800597B37897DEBEB5C64@caldav.corp.apple.com>
References: <BY2PR0301MB0647D01CC525FCE54B2BD033831B0@BY2PR0301MB0647.namprd03.prod.outlook.com> <E08800597B37897DEBEB5C64@caldav.corp.apple.com>
Date: Thu, 19 Nov 2015 10:02:48 -0800
Message-ID: <CABkgnnXrUVK9wO13ZngsvoNxpWHr3d1Lbaw=FBy6_iTj8j2NjA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Cyrus Daboo <cyrus@daboo.name>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/lrNy3A5811vYKwTgbobwLDk0mys>
Cc: Brian Raymor <Brian.Raymor@microsoft.com>, HTTP Working Group <ietf-http-wg@w3.org>, "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [Webpush] Proposed 5xx status code for WebPush
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, 19 Nov 2015 18:02:52 -0000

On 19 November 2015 at 09:00, Cyrus Daboo <cyrus@daboo.name> wrote:
> It seems a little odd for "success" to be indicated by a 4xx code. Why not
> just return a 204 (No Content) for that case?

I like this.  204 indicates that the content was removed
(successfully).  A 404/410 indicates that the resource was discarded.

Obviously, the 204 state might be immediately followed by the removal
of the resource, but we don't need to separately report that.