Allow 400 status code ajax responses

Maybe a technicality, but apparently 400 is the correct HTTP status code for an invalid form submission. I tried using Django's HttpResponseBadRequest for this, but bootstrap-ajax didn't handle it.