Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added HTTP status headers

  • Loading branch information...
commit 3f25358a86b85d4c2da6d0dac7db462bf17475a3 1 parent 6e454fa
@AliasIO authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  index.php
  2. +1 −0  lib/Swiftlet/Controllers/Error404.php
View
1  index.php
@@ -11,6 +11,7 @@
Swiftlet\App::serve();
} catch ( \Exception $e ) {
header('HTTP/1.1 503 Service Temporarily Unavailable');
+ header('Status: 503 Service Temporarily Unavailable');
exit('Swiftlet Exception: ' . $e->getMessage());
}
View
1  lib/Swiftlet/Controllers/Error404.php
@@ -13,6 +13,7 @@ class Error404 extends \Swiftlet\Controller
*/
public function index()
{
+ header('HTTP/1.1 404 Not Found');
header('Status: 404 Not Found');
}
Please sign in to comment.
Something went wrong with that request. Please try again.