Changed HttpResponse(400) to HttpResponseBadRequest