lyndsiWilliams commented on a change in pull request #14172:
URL: https://github.com/apache/superset/pull/14172#discussion_r614903341
##########
File path: superset/databases/commands/exceptions.py
##########
@@ -130,7 +130,8 @@ class
DatabaseTestConnectionDriverError(CommandInvalidError):
message = _("Could not load database driver")
-class DatabaseTestConnectionUnexpectedError(CommandInvalidError):
+class DatabaseTestConnectionUnexpectedError(SupersetErrorsException):
+ status = 422
Review comment:
I use the Mozilla docs for reference, unless we've got custom status
codes:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]