I have tried to test pages and 404 using PHP code. An example : https://www.example.com/dffwfw
When I test PHP code it will not push 404 value. How to push PHP code inside 404 template as it is
Not Found
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
<?php
// Get the current response code and set a new one
var_dump(http_response_code(404));
// Get the new response code
var_dump(http_response_code());
?>