Try failed login ERPNEXT using API got Internal Server Error

hello~
i wanna ask about login using API, if my username and password are correct, i got response if my login succes
reponse : {“home_page”:"/desk",“message”:“Logged In”,“full_name”:“Rico Nova”}

but if i use wrong username or password, why i got Internal Server Error?
why i didnt get any response like “Invalid Login” or “Message : Not Logged In”

if my login not success
reponse :

Internal Server Error

Internal Server Error

Internal Server Error is only part of the message. You should get a more detailed message in the same response.