fixed error page rendering
Merge branch 'custom_mime_type_support'