]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Server exceptions should reasonably be 5xx
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 27 Dec 2015 01:15:37 +0000 (02:15 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 27 Dec 2015 01:15:37 +0000 (02:15 +0100)
lib/serverexception.php

index 0dfbd04ffdd800e32a56d3c2cdc6b3b0ce726bdb..764e11c0fc6c577620783fbb7751ccd2df48d20d 100644 (file)
@@ -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);
     }