From 38031aaff95ab2be0e0cd49bf579ad41d57cce72 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Wed, 23 Dec 2020 13:42:36 +0100 Subject: [PATCH] add missing return-code in DomainZones.add which messes up the error handling when using API Signed-off-by: Michael Kaufmann --- lib/Froxlor/Api/Commands/DomainZones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/Api/Commands/DomainZones.php b/lib/Froxlor/Api/Commands/DomainZones.php index 1d8af83ec8..ddd45dfe19 100644 --- a/lib/Froxlor/Api/Commands/DomainZones.php +++ b/lib/Froxlor/Api/Commands/DomainZones.php @@ -316,7 +316,7 @@ public function add() return $this->response(200, "successful", $result); } // return $errors - throw new \Exception(implode("\n", $errors)); + throw new \Exception(implode("\n", $errors), 406); } /**