diff options
Diffstat (limited to 'flup/server/ajp_base.py')
-rw-r--r-- | flup/server/ajp_base.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/flup/server/ajp_base.py b/flup/server/ajp_base.py index 7f622fc..52c003d 100644 --- a/flup/server/ajp_base.py +++ b/flup/server/ajp_base.py @@ -960,7 +960,8 @@ class BaseAJPServer(object): all errors should be caught at the application level. """ if self.debug: - request.startResponse(200, 'OK', [('Content-Type', 'text/html')]) + request.startResponse(500, 'Internal Server Error', + [('Content-Type', 'text/html')]) import cgitb request.write(cgitb.html(sys.exc_info())) else: @@ -972,5 +973,6 @@ class BaseAJPServer(object): <p>An unhandled exception was thrown by the application.</p> </body></html> """ - request.startResponse(200, 'OK', [('Content-Type', 'text/html')]) + request.startResponse(500, 'Internal Server Error', + [('Content-Type', 'text/html')]) request.write(errorpage) |