Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Implement Error 447 (See related posts)

There's a humorous pseudo-RFC which establishes HTTP Error 447 as "dropped in Pacific Ocean". Here's some PHP to implement it, if you'd like. Sends the right header, and even looks like a standard Apache 2 error page.

<?php

header("HTTP/1.1 447 Dropped by Accident in the Pacific Ocean");
print("\"1.0\" encoding=\"ISO-8859-1\"?>");
?>DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Dropped in Ocean!title>
/html; charset=iso-8859-1" />
"made" href="mailto:webmaster@example.com" />




Dropped in Ocean!

The requested item was accidentally dropped in the Pacific Ocean while being transmitted to your computer, and cannot be displayed.
If you think this is a server error, please contact the "mailto:webmaster@example.com">webmaster.

Error 447

"/">example.com
"D d M Y h:i:s A T"); print("$date"); ?>
Apache/2.0.40 (Red Hat Linux)

You need to create an account or log in to post comments to this site.


Related Posts