You could change this to `return HttpResponseBadRequest()` (see `file_views.py` `save` for reference)