added validation of app status return code