Skip to content

Validate if event exists when posting a message#132

Open
andrekampert wants to merge 1 commit intors:masterfrom
Product-Foundry:unicast-subscriber-unknown
Open

Validate if event exists when posting a message#132
andrekampert wants to merge 1 commit intors:masterfrom
Product-Foundry:unicast-subscriber-unknown

Conversation

@andrekampert
Copy link
Contributor

When sending events, return 404 Not Found rather than 204 No Content in case the event does not exist. This prevents errors in event names or subscriber IDs from going unnoticed when using the pushd server.

  • broadcast: always succeeds
  • unicast:subscriber_id succeeds if subscriber exists
  • all other cases succeed only if the event is known

Fixes #131

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