return HttpResponseBadRequest on invalid search