diff --git a/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java b/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java index 2dc5a91e27a..4c7936746dc 100644 --- a/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java +++ b/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java @@ -93,7 +93,7 @@ public class WSO2IAMSPApplicationService implements ISServiceProviderApplication * @return constructed error message */ private String constructErrorMessage(HttpResponse response) { - String msg = "Error occurred while calling SP Applications API"; + String msg = "Error occurred while calling SP Applications API. Response status: " + response.getStatusLine().getStatusCode(); if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) { msg += ". Make sure provided identity Server credentials are valid"; }