azavea/OpenTreeMap — pull request #18 by jwalgran (2012-10-16 21:55:31+00:00)
Title: Update api to return 409 on existing username

Previous to this commit the new user registration endpoint would
crash when attempting to register an existing username. I modified
the register view function to first check if the username exists
and, if it does exist, return a 409 Conflict status code and a
detailed JSON-format failure message.