diff --git a/app/controllers/general.php b/app/controllers/general.php index 2d02696a3b..c0756eca14 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -704,7 +704,7 @@ Http::error() } /** Handle Utopia Errors */ - if ($error instanceof Utopia\Http\Exception) { + if ($error instanceof Utopia\Http\Exception || $error instanceof Utopia\Servers\Exception) { $error = new AppwriteException(AppwriteException::GENERAL_UNKNOWN, $message, $code, $error); switch ($code) { case 400: