I'd like to customize rejection message from dir auths to relay
Right now if you're a relay and you try to post your descriptor and the dir auth rejects it, you get this in your logs:
log_warn(LD_GENERAL,"http status 400 (%s) response from "
"dirserver '%s:%d'. Please correct.",
where the first %s comes from various possible choices in dirserv_get_status_impl(), e.g.
*msg = "Fingerprint is marked rejected";
or
*msg = "Tor version is insecure or unsupported. Please upgrade!";
We have been encountering cases lately where we want to get a message to a relay operator who is doing something scary (for example, running way too many relays) but who has not set any contactinfo. It would be neat to be able to customize our rejection message, for example to a more friendly one like "Wow, that's a lot of relays! Please contact us?"