well I am not sure if you ever got your answer, but you will not see the header in the browser, in fact the browser will not react to the header in the way you are thinking, unless you are using friendly errors in IE.
The browser will still read the page, apache doesn't automatically generate the proper error page, you have to do that.
This has been my experience anyways.
Just for clarity:
<?php
header("HTTP/1.0 401 Unauthorized");
echo "hello";
?>
will show up in the browser as:
hello
so it is up to the script to generate the proper message to coorspond with the error.
For futher proof I built a reader to read the head and the body and this is what the script above returned to my reading script.
HTTP/1.1 401 Authorization Required
Date: Fri, 25 May 2001 02:52:06 GMT
Server: Apache/1.3.12 (Unix) PHP/4.0.3pl1
X-Powered-By: PHP/4.0.3pl1
Connection: close
Content-Type: text/html
hello
so the code works it just didn't effect the browsers behavior.
Jay
<http://www.shoutclub.com>