I have a web server, and I would like to have the HTTP status code 418 "Iβm a teapot" in some conditions, Iβm sure that I will use the if statement, I just canβt get it on a trip, any help?
<?php header("HTTP/1.1 418 I'm a teapot"); ?> <html> <h1>418 I'm a teapot</h1><br> <p>The HTCPCP Server is a teapot. The responding entity MAY be short and stout.</p> </html>
will result in:
The HTCPCP server is a kettle. The responder MAY be short and fat.