2009-01-20 PHP でレスポンスのステータスコードを指定する方法 PHP 直接ヘッダを記述: <?php header("HTTP/1.0 404 Not Found"); ?> 第3引数でステータスコードを指定: <?php header("HTTP", true, 404);