#!/bin/sh

"$@" | (
    OIFS="$IFS";
    IFS="
";
    read STATUSLINE;
    read BLANKLINE;
    IFS="$OIFS";
    OKLINE=${STATUSLINE##Status: 200}
    if test x"$OKLINE" = x"$STATUSLINE"; then
	cat >&2
	exit 1
    else
	cat
    fi
)
