id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 20822 "Content type of default error pages should be always ""text/html""" lvella anonymous "I have in my settings.py: DEFAULT_CONTENT_TYPE = 'application/xhtml+xml' And every view defined in the project conforms to the that. For instance, I have defined a custom 404 error page, and there is no issue, because I wrote it as valid XHTML. The problem is that the default error pages that comes in Django are, too, being served with the content type I choose in my settings. The simple default error 500 page content ""