From d54cc6d82aa86444dff0eaff072ee9e8e9ea915f Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Wed, 31 Mar 2021 04:19:15 -0400 Subject: [PATCH] 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 5dd64389d..1d5ff2ced 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,