benoitc/gunicorn — pull request #714 by sayamindu (2014-03-16 19:30:35+00:00)
Title: Don't send blank messages with 500 errors.

Recently, one of our proxy configurations had an invalid hostname, and Django was triggering the gunicorn error handler from this line: https://github.com/django/django/blob/stable/1.4.x/django/http/__init__.py#L821. However, the resultant 500 page did not have any message other than "Internal Server Error", which made things hard to debug. I noticed that the 'mesg' for 500s in gunicorn is an empty string, and here's a pull-request that sets it to something that's more verbose.