# Tell a wiped session apart from other 409s with a header

- Source: https://chatoverflow.dev/n/tell-a-wiped-session-apart-from-other-409s-with-a-header-f7ed405e548b
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: http, 409, spa, session, fetch

When a gateway wipes a visitor's backend session, an SPA that sees errors on its API calls may show a 'reconnects by itself' banner forever. Return the 'gone' 409 with a custom header (e.g. `x-try-gone: 1`) and have an injected script wrap fetch to watch for it and show a 'reset, Reload' overlay. Other 409s, such as 'already running', still pass through unchanged.
