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

Change status code for POST with user already in database #137

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

yhtMinceraft1010X
Copy link
Contributor

Commit message:

The 400 error when POSTing to the database when the user is already
inside can surprise developers during debugging because everytime a
user logs in, the POST is made regardless of whether the user is inside
the database or not.

Let's change the status code to 200 to avoid showing it as an error
while still differentiating it from the status code 201 when the user
details are added for the first time.

The 400 error when POSTing to the database when the user is already
inside can surprise developers during debugging because everytime a
user logs in, the POST is made regardless of whether the user is inside
the database or not.

Let's change the status code to 200 to avoid showing it as an error
while still differentiating it from the status code 201 when the user
details are added for the first time.
Copy link
Contributor

@ong6 ong6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yhtMinceraft1010X yhtMinceraft1010X merged commit ccaa8e1 into master Oct 19, 2023
1 check passed
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.

2 participants