saltstack/salt-api — pull request #78 by sfdc-kho (2013-04-22 02:17:41+00:00)
Title: Return a 401 response when /login fails to authenticate using provided credentials

This will allow clients to differentiate between authentication failures and other 500 errors.