Skip to content

fix: align error messages and resolve logic bugs (#16)#65

Open
vaishaldsouza wants to merge 1 commit intoanxkhn:mainfrom
vaishaldsouza:fix/inconsistent-error-messages
Open

fix: align error messages and resolve logic bugs (#16)#65
vaishaldsouza wants to merge 1 commit intoanxkhn:mainfrom
vaishaldsouza:fix/inconsistent-error-messages

Conversation

@vaishaldsouza
Copy link
Copy Markdown

This PR resolves issue #16 by making the error messages consistent between the get_profile and delete_profile endpoints. I also addressed several underlying logic bugs found in the workshop code to ensure all tests pass.

Changes

  • Consistency: Updated delete_profile to return "Profile not found" (previously "User not found").
  • Health Check: Changed status code from 201 to 200 to match REST standards and pass tests.
  • Math Logic: Fixed the /sum endpoint which was multiplying instead of adding.
  • Search: Fixed off-by-one slicing error in search results.

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