This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new d54cc6d fix: change status code for generic errors to 400 (#13868)
d54cc6d is described below
commit d54cc6d82aa86444dff0eaff072ee9e8e9ea915f
Author: Hugh A. Miles II <[email protected]>
AuthorDate: Wed Mar 31 04:19:15 2021 -0400
fix: change status code for generic errors to 400 (#13868)
* change status code for generic errors to 422
* Update exceptions.py
---
superset/exceptions.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/exceptions.py b/superset/exceptions.py
index 5dd6438..1d5ff2c 100644
--- a/superset/exceptions.py
+++ b/superset/exceptions.py
@@ -59,7 +59,7 @@ class SupersetTimeoutException(SupersetErrorException):
class SupersetGenericDBErrorException(SupersetErrorException):
- status = 500
+ status = 400
def __init__(
self,