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!)

About this user

James Bennett

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Implement Error 447

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)
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed