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>
This commit is contained in:
Родитель
58c8c5d59e
Коммит
9223a5bcd2
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче