diff --git a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/access_control/helper/SSCTokenHelper.java b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/access_control/helper/SSCTokenHelper.java index e3bc6fec74..59167c5d44 100644 --- a/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/access_control/helper/SSCTokenHelper.java +++ b/fcli-core/fcli-ssc/src/main/java/com/fortify/cli/ssc/access_control/helper/SSCTokenHelper.java @@ -174,7 +174,7 @@ private static SSCTokenGetOrCreateResponse getTokenData(UnirestInstance unirest, result.getData().setToken(token); return result; } catch ( UnexpectedHttpResponseException e ) { - if ( e.getStatus()==404 ) { + if ( e.getStatus()==404 || e.getStatus()==401 ) { // Older SSC versions don't support this endpoint, so we just return null return null; } else {