set_404(); } status_header(404); nocache_headers(); $not_found_tmpl = get_404_template(); if (!empty($not_found_tmpl) && file_exists($not_found_tmpl)) { include $not_found_tmpl; } } else { http_response_code(404); }