The HttpResponse [allows you to set the content](https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpResponse.content). Add a short message in the content kwarg briefly indicating this was an error with the excel file.