summaryrefslogtreecommitdiff
path: root/t/lib-httpd/error.sh
blob: 786f2816bb66b6dc21c593f861365924d0d1ecf1 (plain)
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"