I have deployed a WSGI application in Apache2 with mod_wsgi.
The application is made so that it responds with a 400 response code if the data provided by the user in a form is invalid. The response also contains the HTML with the form and invalid fields highlighted so that the user may correct the data.
This works flawlessly using development servers like Waitress. But when deployed in Apache with a quite standard configuration; Apache swallows the HTML and thus hampers the client's ability to correct his/her mistake.
Is there a way to configure Apache so that Error Messages come from the WSGI Application?