http://snippets.bentasker.i2p/posts/php/returning-http-status-codes-in-php.html
This snippet lists some of the common HTTP Status codes and how to return them Similar To PHP http_response_code() Details Language: PHP Snippet /* Success - 2xx */ // Standard response - HTTP 200 (the default anyway) header($_SERVER["SERVER_PROTOCOL"]." 200 OK", true, 200); // No Content - HTTP 204 header($_SERVER["SERVER_PROTOCOL"]." 200 OK", true, 204); // Partial Content - HTTP 206 header($_SERVER["SERVER_PROTOCOL"]." 200 OK", true, 206); header("Content-Range: 0-1024"); /* Redirects ...