This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch hugh/generic-err-422
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 73aa8c1e23b52b17994c1bb0c9b039154fda906e
Author: hughhhh <[email protected]>
AuthorDate: Tue Mar 30 10:42:12 2021 -0400

    change status code for generic errors to 422
---
 superset/exceptions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/exceptions.py b/superset/exceptions.py
index 5dd6438..6ba1093 100644
--- a/superset/exceptions.py
+++ b/superset/exceptions.py
@@ -59,7 +59,7 @@ class SupersetTimeoutException(SupersetErrorException):
 
 
 class SupersetGenericDBErrorException(SupersetErrorException):
-    status = 500
+    status = 422
 
     def __init__(
         self,

Reply via email to