From 1c2db152634a9dcedce45e24059b5f365a2b4cee Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 29 Jun 2019 18:28:43 +0100 Subject: [PATCH] http busy code --- daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index c95c9ca5..5f1abb3e 100644 --- a/daemon.py +++ b/daemon.py @@ -92,7 +92,7 @@ class PubServer(BaseHTTPRequestHandler): def do_GET(self): try: if self.GETbusy: - self.send_response(400) + self.send_response(429) self.end_headers() return except: @@ -150,7 +150,7 @@ class PubServer(BaseHTTPRequestHandler): def do_POST(self): try: if self.POSTbusy: - self.send_response(400) + self.send_response(429) self.end_headers() return except: