generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change status code for POST with user already in database (#137)
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.
- Loading branch information
1 parent
408fde0
commit ccaa8e1
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters