Fixed responses after failed authN (500 -> 401)