Description
When I register a user with an existing username, I get a 400 status code:
First try:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"firstname":"Abstract","lastname":"J","email":"mei@open.de","username":"mrBruno","password":"password","role":"admin"}' http://localhost:8080/todo-server/auth/register
==> 200
Second try:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"firstname":"Abstract","lastname":"J","email":"mei@open.de","username":"mrBruno","password":"password","role":"admin"}' http://localhost:8080/todo-server/auth/register
==> 400 response code.