Changed error code for AuthenticationFailed exception.