etwist/server.py
changeset 9919 e013c35067d7
parent 9890 57e2cffa6329
child 10235 684215aca046
--- a/etwist/server.py	Tue Jul 08 10:34:50 2014 +0200
+++ b/etwist/server.py	Tue Jul 08 11:33:32 2014 +0200
@@ -178,7 +178,7 @@
         path = self.channel._path.split('?', 1)[0].rstrip('/').rsplit('/', 1)[-1]
         self.clientproto = 'HTTP/1.1' # not yet initialized
         self.channel.persistent = 0   # force connection close on cleanup
-        self.setResponseCode(http.BAD_REQUEST)
+        self.setResponseCode(http.REQUEST_ENTITY_TOO_LARGE)
         if path in JSON_PATHS: # XXX better json path detection
             self.setHeader('content-type',"application/json")
             body = json_dumps({'reason': 'request max size exceeded'})