Replace HttpResponse mimetype with content_type as deprecated