diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-05-08 21:29:38 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-05-08 21:29:38 +0300 |
commit | 9223a5bcd29790a979a2ddcf677be4d216a14873 (patch) | |
tree | 77e565c4535fe4be4decdf99002874e3f1e82b76 /lib | |
parent | 58c8c5d59e9e49450b97a0449eb48dcb80011c59 (diff) |
Use valid HTTP status codes
Else if the error code is not set it is 0 which is not at all a valid
status code.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/SettingsController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php index fd1d53be..0ad2301f 100644 --- a/lib/Controller/SettingsController.php +++ b/lib/Controller/SettingsController.php @@ -75,7 +75,7 @@ class SettingsController extends Controller{ return new DataResponse([ 'status' => $e->getCode(), 'message' => $e->getMessage() - ], $e->getCode()); + ], Http::STATUS_INTERNAL_SERVER_ERROR); } return new DataResponse(); |