http busy code

master
Bob Mottram 2019-06-29 18:28:43 +01:00
parent 51e7454a3c
commit 1c2db15263
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class PubServer(BaseHTTPRequestHandler):
def do_GET(self): def do_GET(self):
try: try:
if self.GETbusy: if self.GETbusy:
self.send_response(400) self.send_response(429)
self.end_headers() self.end_headers()
return return
except: except:
@ -150,7 +150,7 @@ class PubServer(BaseHTTPRequestHandler):
def do_POST(self): def do_POST(self):
try: try:
if self.POSTbusy: if self.POSTbusy:
self.send_response(400) self.send_response(429)
self.end_headers() self.end_headers()
return return
except: except: