keecode logokeecode
69

Service Unavailable

Service unavailable

Application

Exit Code Information

Exit Code

69

Name

Service Unavailable

Category

Application

Usage Context

A service is unavailable

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "Service Unavailable"
  exit 69
fi

Check Exit Code

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

# Check if exit code matches
if [ $? -eq 69 ]; then
  echo "Service Unavailable"
fi

Node.js/JavaScript

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

// Or throw error that results in exit code
if (error) {
  console.error('Service Unavailable');
  process.exit(69);
}

Python

import sys

# Exit with code 69
if error:
    print("Service Unavailable")
    sys.exit(69)