From 7fd2e29632a79409f6c4c01bbba5b06e025a22a5 Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Tue, 13 Feb 2018 22:31:13 +0100 Subject: [PATCH] correct message for wrong authentication --- pymanager/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymanager/manager.py b/pymanager/manager.py index 07c0c62..3392f8e 100755 --- a/pymanager/manager.py +++ b/pymanager/manager.py @@ -394,8 +394,8 @@ class ManageHttpRequest(http.server.SimpleHTTPRequestHandler): """ logging.debug('post recieved : %s' % self.path) if not self.check_authentication(): - self.send_error(400, 'Bad authentication') - logging.error("Bad authentication") + self.send_error(403, 'Wrong authentication') + logging.error("Wrong authentication") elif self.path == '/START': self._send_command("START") elif self.path == '/STOP':