added error code to ips & interfaces