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

Re: Proposed 5xx status code for WebPush

From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 19 Nov 2015 10:02:48 -0800
Message-ID: <CABkgnnXrUVK9wO13ZngsvoNxpWHr3d1Lbaw=FBy6_iTj8j2NjA@mail.gmail.com>
To: Cyrus Daboo <cyrus@daboo.name>
Cc: Brian Raymor <Brian.Raymor@microsoft.com>, HTTP Working Group <ietf-http-wg@w3.org>, "webpush@ietf.org" <webpush@ietf.org>
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.
Received on Thursday, 19 November 2015 18:03:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:11:40 UTC