Super Admins can only be created once unless the server is restarted with the "reset superadmin" flag set. If you were to make a follow up request to create a super admin when one already exists, the server returned 500 which is not meaningful.
Approach
Change response code to 400 for the error case of a SA already existing.
Context
Super Admins can only be created once unless the server is restarted with the "reset superadmin" flag set. If you were to make a follow up request to create a super admin when one already exists, the server returned 500 which is not meaningful.
Approach
Change response code to 400 for the error case of a SA already existing.
Testing
attempt to make 2 SAs