Merge pull request #9189 from nextcloud/enhancement/dev-docs-maintenance-mdoe

Document maintenance mode header
This commit is contained in:
Christoph Wurst
2022-09-30 16:43:29 +02:00
committed by GitHub
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
=========