From b5a161594da1a725d0eee2fab3cda445227407ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 20 Aug 2018 14:25:28 +0200 Subject: [PATCH] Fix documentation error We return 403 on a wrong API key, not 401 - 401 causes issues with Basic Auth setups as reported in #2297 and hence fixed in b1f9e070a4e09c4a90dc7e82651e39325b4e532c. Closes #2706 --- docs/api/general.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/general.rst b/docs/api/general.rst index 4232a96c9..cc1cd0a72 100644 --- a/docs/api/general.rst +++ b/docs/api/general.rst @@ -23,7 +23,7 @@ The API key must be supplied in the custom HTTP header ``X-Api-Key``, e.g. Host: example.com X-Api-Key: abcdef... -If it is missing or included but invalid, OctoPrint will directly return a response with status :http:statuscode:`401`. +If it is missing or included but invalid, OctoPrint will directly return a response with status :http:statuscode:`403`. For testing purposes it is also possible to supply the API key via a query parameter ``apikey``, e.g.