At least on my side with php-fpm and nginx this method does not change the text in the response, only the code.
<?php
// HTTP/1.1 404 Not Found
http_response_code(404);
?>
The resulting response is HTTP/1.1 404 OK
At least on my side with php-fpm and nginx this method does not change the text in the response, only the code.
<?php
// HTTP/1.1 404 Not Found
http_response_code(404);
?>
The resulting response is HTTP/1.1 404 OK