http://phecoopkj4ytf3fokcfvykymg7zuhkwsoqbh5dgnwwee423delgexyqd.onion/page-1804050742-Returning-HTTP-status-codes-in-PHP-PHP.html
This snippet lists some of the common HTTP Status codes and how to return them Similar to PHP http_response_code() 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 - 3xx */
//...