summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index c671c3fbf6..e54225ccc1 100644
--- a/index.php
+++ b/index.php
@@ -147,7 +147,7 @@ try {
$content = view('errors/database-error', ['error' => $ex->getMessage()]);
}
$html = view('layouts/error', ['content' => $content]);
- $response = new Response($html, 503);
+ $response = new Response($html, Response::HTTP_SERVICE_UNAVAILABLE);
$response->prepare($request)->send();
return;
} catch (Throwable $ex) {
@@ -157,7 +157,7 @@ try {
I18N::init();
$content = view('errors/database-connection', ['error' => $ex->getMessage()]);
$html = view('layouts/error', ['content' => $content]);
- $response = new Response($html, 503);
+ $response = new Response($html, Response::HTTP_SERVICE_UNAVAILABLE);
$response->prepare($request)->send();
return;
}