Skip to content

Events: exhausted subscription is 410 Gone, not 429 - #194

Merged
dickhardt merged 1 commit into
mainfrom
events-exhausted-410
Sep 20, 2026
Merged

dickhardt merged 1 commit into
mainfrom
events-exhausted-410

Conversation

@dickhardt

Copy link
Copy Markdown
Owner

The AP answered 429 when max_uses was exceeded. That is the wrong shape: exhaustion is terminal — the eid will never accept another event token, and the resource's move is to clean up its subscription record and re-subscribe, not to wait and retry. 429 says come back later, which is what it means in both of the base protocol's uses of it (slow_down on a pending URL, and rate_limited at a revocation endpoint as of -11).

410 Gone says the subscription was valid and is spent. Added a sentence giving the reason, since the surrounding errors are stated in prose with no table.

Left alone: an expired subscription still answers 404 alongside an unknown eid. Arguably the same terminal condition as exhaustion, but it is a separate call from this one.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RjEmEYJYXE5TLSYRpdkHjS

Exhaustion is terminal — the eid will never accept another event token
and the resource's move is to clean up and re-subscribe — while 429
invites a retry after waiting, which is what it means in both of the
base protocol's uses of it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RjEmEYJYXE5TLSYRpdkHjS
@dickhardt
dickhardt merged commit 554edf9 into main Sep 20, 2026
2 checks passed
@dickhardt
dickhardt deleted the events-exhausted-410 branch September 20, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant