最後更新: 2016-03-15
php 5.3
<?php header("HTTP/1.1 401 Unauthorized"); exit; ?>
php 5.4
// PHP 5.4.0 <?php http_response_code(404); ?>