Is it a good solution if I put to my 404.php file this header?
<?php
header("HTTPS/1.1 404 oldal nem található");
?>
(Instead of [...]HTTP/1.1[...]
Thank you!
Better alternatives are available according to use cases, this includes:
header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found");
http_response_code(404);
It's okay to use direct string.