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

Re: Proposed 5xx status code for WebPush

From: Cyrus Daboo <cyrus@daboo.name>
Date: Thu, 19 Nov 2015 12:00:12 -0500
To: Brian Raymor <Brian.Raymor@microsoft.com>, ietf-http-wg@w3.org
cc: webpush@ietf.org
Message-ID: <E08800597B37897DEBEB5C64@caldav.corp.apple.com>
Hi Brian,

--On November 19, 2015 at 5:19:15 AM +0000 Brian Raymor 
<Brian.Raymor@microsoft.com> wrote:

> In WebPush
> (https://datatracker.ietf.org/doc/draft-ietf-webpush-protocol/), an
> application server can request that the push service acknowledge that it
> has delivered a message to a user agent. The push service indicates
> success (positive acknowledgement) by returning a 410 (Gone) to the
> application server.

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?

If you do that, then you can use 410 for the case where the server has 
stopped processing the push, and 503 for the "operation" failure.

If you need more fine-grained error reporting, then consider using 
<https://tools.ietf.org/html/draft-ietf-appsawg-http-problem-01> as the way 
to do that rather than inventing lots of new status codes.

Cyrus Daboo
Received on Thursday, 19 November 2015 17:00:42 UTC

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