Document maintenance mode header

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst
2022-09-30 16:22:18 +02:00
parent 8326cf14da
commit 250286e335
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
=======
General
=======
Nextcloud's APIs are mainly available through :ref:`rest-apis`, :ref:`OCS <ocsapiindex>` and :ref:`webdavapiindex`.
Generic Errors
--------------
Additional to specific errors of an API, there are a few generic errors Nextcloud might throw on web APIs.
Maintenance Mode
****************
If Nextcloud is down for maintenance, it sends a HTTP response with status code 503 and the header ``x-nextcloud-maintenance-mode: 1``.

View File

@@ -7,6 +7,7 @@ Clients and Client APIs
.. toctree::
:maxdepth: 2
general
android_library/index
WebDAV/index
OCS/index

View File

@@ -1,3 +1,5 @@
.. _rest-apis:
=========
REST APIs
=========