Raising an exception might be better here - git_service_hook is not ready to handle HttpResponseBadRequest objects as return value.