aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-04-28 18:27:38 +0200
committern-peugnet <n.peugnet@free.fr>2020-04-28 18:27:38 +0200
commit30b516bfcf56249c6954bd1aaf4e3c52b18f57fe (patch)
treec2e44ee8c1e60135b771286df0f7dc9610100b23 /index.php
parent3183ce9dd42211b7279c7ce545c414452f5a9ef0 (diff)
downloadwcms-30b516bfcf56249c6954bd1aaf4e3c52b18f57fe.tar.gz
wcms-30b516bfcf56249c6954bd1aaf4e3c52b18f57fe.zip
fix: error codes on error pages
- 404 on page not exist - 500 on unknown internal error Fixes #90
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index 41a2184..154d947 100644
--- a/index.php
+++ b/index.php
@@ -38,5 +38,6 @@ try {
Sentry\captureException($e);
}
Logger::errorex($e, true);
+ http_response_code(500);
echo '<h1>⚠ Woops ! There is a little problem : </h1>', $e->getMessage(), "\n";
}