Best way to handle bad login

On my client I get AuthException(message: Invalid login credentials, statusCode: 400)

What is the best to check if the request failed due to bad credentials? Checking status code is 400 and message is Invalid login credentials?

Maybe this info will change in the future.

Will not be a good idea to implement a more detailed exception like BadCredentialsAuthException?
Was this page helpful?