Obtaining the request code of the method onError of MAS.Invoke for
if(Objects.equals(e.getMessage(), "Unauthorized")) {
Log.e("HTTP Status Code", "401");
}
Release : 4.2
To expose the http status code you can use the sample below.
int responseCode = ((TargetApiException)e.getCause()).getResponse().getResponseCode();