Skip to content

Instantly share code, notes, and snippets.

@jmhobbs
Created May 18, 2010 22:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmhobbs/405644 to your computer and use it in GitHub Desktop.
Save jmhobbs/405644 to your computer and use it in GitHub Desktop.
Example 503 Error Page
<?php
ob_start();
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600');
header('X-Powered-By:');
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Temporarily Unavailable</title>
</head><body>
<h1>Service Temporarily Unavailable</h1>
<p>The server is temporarily unable to service your request due to maintenance downtime. Please try again later.</p>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment