Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat (service): use status code 204 instead of 404 for /stream/posts and /stream/users #254

Open
catch-21 opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels

Comments

@catch-21
Copy link

Pubky-app is using endpoint /stream/posts to poll for new posts. Most requests yield a 404 response, which looks like an error. We could use 204 instead to indicate the request was successful but there is no new content to respond with.

@SHAcollision SHAcollision changed the title Use status code 204 instead of 404 for /stream/posts feat: use status code 204 instead of 404 for /stream/posts and /stream/users Dec 18, 2024
@SHAcollision SHAcollision changed the title feat: use status code 204 instead of 404 for /stream/posts and /stream/users Feat (service): use status code 204 instead of 404 for /stream/posts and /stream/users Dec 18, 2024
@amirRamirfatahi amirRamirfatahi self-assigned this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants