pub fn domain_registration_protocol_error(error: AppError) -> ProtocolError
Maps a Domain registration failure to one safe stable protocol error.