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

204 Return on inexisting user #83

Closed
fisico95 opened this issue Oct 13, 2021 · 2 comments
Closed

204 Return on inexisting user #83

fisico95 opened this issue Oct 13, 2021 · 2 comments

Comments

@fisico95
Copy link

The bundle return a 204 code without message on an inexistant user in database.
Why not try an exception?

@vincentchalamon
Copy link
Contributor

Hello @fisico95,

A 204 status code is returned for security reasons even if the user doesn't exist in the database. Throwing an exception or a 404 status code will give the information that this username/email exists in the database.

@fisico95
Copy link
Author

Ok, thx for response

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

No branches or pull requests

2 participants