diff --git a/build/integration/features/provisioning-v1.feature b/build/integration/features/provisioning-v1.feature
index 5041f18b1b02d2bdeee64c712ac7d3bddf2b26e1..d44903c274381ee00bdbcddc83d40ebc682ee082 100644
--- a/build/integration/features/provisioning-v1.feature
+++ b/build/integration/features/provisioning-v1.feature
@@ -506,5 +506,6 @@ Feature: provisioning
 		And assure user "user0" is disabled
 		And As an "user0"
 		When sending "GET" to "/index.php/apps/files"
-		Then the HTTP status code should be "503"
+		Then the OCS status code should be "999"
+    	And the HTTP status code should be "200"
 
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index a602ea40a9cae094a449dfb2e39aaaf0b4010013..79d7617f02447ba194c1d24c7e085cf564d78dc1 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -707,4 +707,5 @@ Feature: sharing
       | path | welcome.txt |
       | shareWith | user1 |
       | shareType | 0 |
-    Then the HTTP status code should be "503"
+    Then the OCS status code should be "997"
+    And the HTTP status code should be "401"