There are php commands to control the return code in the header.
But to use it I first had to install PHP for my lighttpd server with this command:
"sudo apt-get install lighttpd php5-cgi"
After that I had to enable it in the server with these 2 commands
After that I have renamed my index.html for index.php and then I have added this PHP code to my page.
"<?php
Here is the result in the Firefox debuging console
But to use it I first had to install PHP for my lighttpd server with this command:
"sudo apt-get install lighttpd php5-cgi"
After that I had to enable it in the server with these 2 commands
"sudo lighty-enable-mod fastcgi" "sudo lighty-enable-mod fastcgi-php"
After that I have renamed my index.html for index.php and then I have added this PHP code to my page.
"<?php
header("I'm a teapot!", true, 418);
?>"
Here is the result in the Firefox debuging console
















