From 62c4ffe889c0ba3938c86ddca9e2ffe7b78285db Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 27 Dec 2015 02:15:37 +0100 Subject: [PATCH] Server exceptions should reasonably be 5xx --- lib/serverexception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serverexception.php b/lib/serverexception.php index 0dfbd04ffd..764e11c0fc 100644 --- a/lib/serverexception.php +++ b/lib/serverexception.php @@ -45,7 +45,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { class ServerException extends Exception { - public function __construct($message = null, $code = 400) { + public function __construct($message = null, $code = 500) { parent::__construct($message, $code); } -- 2.39.5