Locked out status with OpenID

Hi,

We are using Okta for our Android mobile application and the user authentication with Okta is implemented using openid appauth framework. User login seems to work well but I am unable to get the locked out status message if the account is locked.

I just see this auth exception -> {“type”:2,“code”:2002,“error”:“invalid_grant”,“errorDescription”:“The credentials provided were invalid.”,“errorUri”:""} and the response is null.
I do see the account is locked from the Okta dashboard and also the policy is enabled to send the locked out status. I will need to know if the account was locked out so that I can show a message to the user. Any help is greatly appreciated. Thanks.