Skip to content

Instantly share code, notes, and snippets.

@kopiro
Created February 1, 2012 11:46
Show Gist options
  • Save kopiro/1716707 to your computer and use it in GitHub Desktop.
Save kopiro/1716707 to your computer and use it in GitHub Desktop.
Generate correctly 404-error via PHP
<?php
header("HTTP/1.0 404 Not Found");
die("<h1>404 NOT FOUND</h1>");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment