mozilla-services / pushgo

🚨🚨🚨OBSOLETE AND UNMAINTAINED🚨🚨🚨 See Autopush for the current server.
https://github.com/mozilla-services/autopush
Mozilla Public License 2.0
24 stars 10 forks source link

Return 202 on Accepted, but not delivered notifications #206

Closed jrconlin closed 9 years ago

jrconlin commented 9 years ago

We are currently returning 404 on notifications with correct URLs, that are stored, but not immediately delivered to clients. This isn't correct, since the endpoint and processing is correct, just that the client is currently unavailable.

We should return 202 in that case. Note: we return 200 in cases where the notification passes and is delivered to the client (via Proprietary mechanisms, or direct socket connection).