A web push 410 Gone response means the subscription no longer exists. The subscriber revoked permission, cleared site data, uninstalled the browser, or the push service expired the endpoint. It won’t come back, so delete that subscription from your database. A 404 Not Found from the push service usually means the same thing.
If you run your own web push sending, 410 is the status code you’ll see most after 201 Created. Ignore it and your list fills with dead endpoints, your send jobs slow down, and your reports look worse than reality. Here’s what the web push 410 Gone error means, which other codes matter, and how I’d handle them in code.
Key facts at a glance:
- 201 Created means the push service accepted the message. It doesn’t mean the notification was shown.
- 404 and 410 mean the subscription is invalid or expired. The web.dev Web Push protocol guide says to remove it.
- 413 means the payload is too large; the limit is 4,096 bytes encrypted.
- 429 means you’re sending too fast; wait for the time in the Retry-After header.
- 400, 401 and 403 usually point to a bad request or a VAPID key problem, not a dead subscriber.
What does 410 Gone mean in web push?
410 Gone means the push service has permanently removed the subscription endpoint you sent to. It’s defined in RFC 8030, the Web Push protocol, and every major push service uses it, including Firebase Cloud Messaging (FCM), Mozilla’s autopush and Apple’s web push service.
The important word is permanent. Retrying the same endpoint later won’t work, and the subscriber won’t receive anything there again. If the same person comes back and allows notifications, the browser creates a brand-new subscription with a new endpoint.
Why do web push subscriptions expire?
Subscriptions expire because the browser or the user ends them, usually without telling your server. The browser simply stops answering at that endpoint, and the push service starts returning 410 or 404.
The common causes are:
- The subscriber blocked notifications for your site in browser settings.
- They cleared cookies and site data, which removes the service worker and subscription.
- They uninstalled or reset the browser, or reinstalled the operating system.
- On iPhone or iPad, they removed your web app from the Home Screen.
- The browser rotated the subscription, for example after a long period of inactivity.
- Your site changed its VAPID keys or service worker scope, so old subscriptions no longer match.
My post on how long web push subscriptions last goes deeper into lifespan, and why web push subscriptions are tied to a domain explains the domain and key side.
What do other web push response codes mean?
Each response code tells you whether to keep, retry or delete a subscription. Here’s how I handle the common ones:
| Status code | Meaning | What to do |
|---|---|---|
| 201 Created | Message accepted by the push service | Nothing; count it as sent |
| 400 Bad Request | Malformed request or headers | Fix your request; don’t delete the subscriber |
| 401 / 403 | VAPID authentication failed or keys don’t match | Check your VAPID keys and JWT; don’t delete yet |
| 404 Not Found | Subscription not found or expired | Delete the subscription |
| 410 Gone | Subscription permanently removed | Delete the subscription |
| 413 Payload Too Large | Encrypted payload over 4,096 bytes | Shorten the payload |
| 429 Too Many Requests | Rate limited | Wait for Retry-After, then retry |
| 5xx | Push service error | Retry later with backoff |
The 403 case deserves care. If every send suddenly returns 403, the subscribers aren’t gone; your VAPID keys probably changed. Deleting them would wipe a healthy list. My explainer on VAPID keys covers why keys must stay the same. For 413 errors, see web push payload size limits.
How do you remove expired subscriptions automatically?
Check the status code of every send, and delete the subscription when you get 404 or 410. Do it as part of the send job, not as a separate cleanup task, so dead endpoints never pile up. Here’s the pattern with the Node.js web-push library:
const webpush = require('web-push');
async function send(sub, payload) {
try {
await webpush.sendNotification(sub, payload, { TTL: 86400 });
} catch (err) {
if (err.statusCode === 404 || err.statusCode === 410) {
await db.subscriptions.delete({ endpoint: sub.endpoint }); // gone for good
} else if (err.statusCode === 429) {
const wait = Number(err.headers?.['retry-after'] || 60);
await queue.retryLater(sub, payload, wait); // slow down
} else {
console.error('push failed', err.statusCode, err.body); // investigate
}
}
}The PHP library web-push-php returns a report object for each message with an isSubscriptionExpired() helper, and Python’s pywebpush raises an exception that carries the response. The idea is the same in every language. My tutorials for Node.js and PHP or Laravel show the full sending setup.
Can you prevent subscriptions from expiring?
You can’t stop users from blocking or clearing data, but you can avoid causing expiry yourself. Keep your VAPID keys, service worker file location and domain stable. Then re-sync the subscription when visitors come back.
A simple habit helps. On each visit, call registration.pushManager.getSubscription() and send the current subscription to your server. If the browser has rotated it, your server stores the new endpoint before the old one starts returning 410. The pushsubscriptionchange event is meant to cover this case too, but browser support is uneven, so check MDN’s pushsubscriptionchange page before depending on it.
Sending fewer, more relevant notifications also matters. People who feel spammed block notifications, which is the most common way a subscription ends. My post on why push subscribers unsubscribe covers the main reasons.
Does a high number of 410 errors mean something is wrong?
Not necessarily. Some expiry is normal on any list, especially one built over years. A sudden spike after a deploy is different. That usually points to a changed service worker, new VAPID keys or a domain move.
Compare the share of 404 and 410 responses per send over time. A steady, low share is list hygiene doing its job. A jump right after a site change is a bug to investigate before your next campaign.
Where LaraPush fits
LaraPush is a self-hosted web push panel that you run on your own VPS, with a one-time licence from $499 (check LaraPush pricing). It sends through Firebase Cloud Messaging and reports sent, delivered and clicked counts for each campaign, plus server and queue monitoring. So you don’t write the sending code above yourself. The features page lists what’s included, and the setup guide covers installation. The trade-offs are no free plan and a server you maintain. For other options, see my roundup of the best push notification services and tools.
Frequently asked questions
No. A 410 Gone response means the push service has permanently removed that endpoint, so retries will keep failing. Delete the subscription from your database. If the person allows notifications again later, their browser creates a new subscription with a different endpoint, which your site saves as usual.
Both tell you the subscription can’t receive messages. 410 Gone says it was removed permanently, while 404 Not Found says the push service doesn’t recognise it. The web.dev Web Push protocol guide recommends deleting the subscription in both cases, so most senders handle them the same way.
A 403 on every send usually means a VAPID problem, not dead subscribers. The keys signing your request don’t match the keys used when visitors subscribed, or the JWT is invalid. Check your VAPID public and private keys before deleting anything, because the subscriptions themselves may be fine.
No. 201 Created only means the push service accepted the message. Delivery happens later, when the device is online and within the TTL you set. Even then, your service worker must show the notification. Use delivered and clicked reports, not 201 responses, to judge reach.
Clean them on every send. Check each response and delete the subscription as soon as you get a 404 or 410. That keeps your list accurate without a separate cleanup job, and it stops your sending queue wasting time on endpoints that will never accept a message again.




