Skip to content

Commit

Permalink
fix: change status code for generic errors to 400 (#13868)
Browse files Browse the repository at this point in the history
* change status code for generic errors to 422

* Update exceptions.py
  • Loading branch information
hughhhh authored Mar 31, 2021
1 parent 9d6832d commit d54cc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SupersetTimeoutException(SupersetErrorException):


class SupersetGenericDBErrorException(SupersetErrorException):
status = 500
status = 400

def __init__(
self,
Expand Down

0 comments on commit d54cc6d

Please sign in to comment.