1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh printf "Status: 500 Intentional Breakage\n" printf "Content-Type: " case "$PATH_INFO" in *html*) printf "text/html" ;; *text*) printf "text/plain" ;; esac printf "\n" printf "\n" printf "this is the error message\n"