keecode logokeecode
76

Protocol Error

Remote error in protocol

Application

Exit Code Information

Exit Code

76

Name

Protocol Error

Category

Application

Usage Context

Error in protocol exchange

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "Protocol Error"
  exit 76
fi

Check Exit Code

./script.sh
echo $?  # Prints the exit code

# Check if exit code matches
if [ $? -eq 76 ]; then
  echo "Protocol Error"
fi

Node.js/JavaScript

// Exit with code 76
process.exit(76);

// Or throw error that results in exit code
if (error) {
  console.error('Protocol Error');
  process.exit(76);
}

Python

import sys

# Exit with code 76
if error:
    print("Protocol Error")
    sys.exit(76)