From 4649653d9f7f4abe2cb1047e2e930bc0dc0d145c Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 8 Feb 2022 02:08:05 +0400 Subject: [PATCH] feat: add invalid argument error --- app/config/errors.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/config/errors.php b/app/config/errors.php index ea1b95d22f..db9c4aed6a 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -43,6 +43,11 @@ return [ 'description' => 'SMTP is disabled on your Appwrite instance. Please contact your project.', 'code' => 503, ], + Exception::GENERAL_ARGUMENT_INVALID => [ + 'name' => Exception::GENERAL_ARGUMENT_INVALID, + 'description' => 'Invalid argument', + 'code' => 400, + ], Exception::GENERAL_SERVER_ERROR => [ 'name' => Exception::GENERAL_SERVER_ERROR, 'description' => 'Internal server error.',