diff --git a/htdocs/index.php b/htdocs/index.php
index 45bcb2bbb21c64e84853c7e156302e00487699a3..73b6cf4831d1e242d7c971d9cf2052cf693a3a38 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -147,6 +147,7 @@ if (file_exists($comppath)) {
 	$compoutput = ob_get_contents();
 	ob_end_clean();
 } else {
+	header("HTTP/1.1 404 Not Found");
 	$smarty->assign("body", "Component ".$component['component']." not found");
 }