Is it possible to use something like this http://us3.php.net/manual/en/function.http-response-code.php ?