I would like to return an error code on accessing a page, specifically a 418 error to see how my browser/server will implement it (and in case I ever manage to wire the appropriate devices to my digital coffee/tea pot I would like to know when it’s done 🙂 )
Is this even supported on Apache/2.2.14 (Ubuntu)?
You can make a simple PHP page that sends the appropriate header.
However, it’s simply going to do nothing. As much as all other
4xxstatus codes don’t alter the page’s behavior, this one will also just display the rest of the content you’ve sent.