diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py
index a9fa094..fdbdea5 100644
a
|
b
|
class WSGIHandler(base.BaseHandler):
|
260 | 260 | status_text = STATUS_CODE_TEXT[response.status_code] |
261 | 261 | except KeyError: |
262 | 262 | status_text = 'UNKNOWN STATUS CODE' |
263 | | status = '%s %s' % (response.status_code, status_text) |
| 263 | status = '%s %s' % (response.status_code, getattr(response, 'status_text', None) or status_text) |
264 | 264 | response_headers = [(str(k), str(v)) for k, v in response.items()] |
265 | 265 | for c in response.cookies.values(): |
266 | 266 | response_headers.append((str('Set-Cookie'), str(c.output(header='')))) |