use different return values for different errors

avahi seems to use port 5353, this change makes it easier
to debug port collisions