What response code should be passed to client in case of following scenarios?
- Invalid data passed while user registration like wrong email format
- User name/ Email is already exists
I chose 403. I also found following that I feel can be used.
Wikipedia:
412 Precondition Failed :
The server does not meet one of the preconditions that the requester
put on the request
Suggest code if I should use other than 403.