From e99166c3fb640e897d1ff353ba23bc4c76fac2fc Mon Sep 17 00:00:00 2001
From: "Lucian I. Last"
Date: Thu, 26 Jan 2023 18:12:35 +0100
Subject: [PATCH] Update externalapi.rst
The api does not actually return status 100 on an **ok** response
Related issue: https://github.com/nextcloud/server/issues/30163
Signed-off-by: Lucian I. Last
---
developer_manual/core/externalapi.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/developer_manual/core/externalapi.rst b/developer_manual/core/externalapi.rst
index aae504935..27ec61502 100644
--- a/developer_manual/core/externalapi.rst
+++ b/developer_manual/core/externalapi.rst
@@ -81,7 +81,7 @@ Output from the application is wrapped inside a **data** element:
ok
- 100
+ 200
@@ -98,7 +98,7 @@ Output from the application is wrapped inside a **data** element:
"ocs": {
"meta": {
"status": "ok",
- "statuscode": 100,
+ "statuscode": 200,
"message": null
},
"data": {
@@ -112,10 +112,10 @@ Statuscodes
The statuscode can be any of the following numbers:
-* **100** - successful
+* **200** - successful
* **996** - server error
-* **997** - not authorized
-* **998** - not found
+* **401** - not authorized
+* **404** - not found
* **999** - unknown error
Changing API and backwards compatibility