You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2021/12/15 17:06:24 UTC
[superset] 01/01: fix: change 401 to 403 for Security Exceptions
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch fix-change-401-to-403-for-Security-Exceptions
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 14045a1116d03465d4d4cd0bf5c92d84e613af06
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Wed Dec 15 10:04:13 2021 -0700
fix: change 401 to 403 for Security Exceptions
---
superset/exceptions.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/exceptions.py b/superset/exceptions.py
index 2a90260..6ed3a0e 100644
--- a/superset/exceptions.py
+++ b/superset/exceptions.py
@@ -149,7 +149,7 @@ class SupersetTemplateParamsErrorException(SupersetErrorFromParamsException):
class SupersetSecurityException(SupersetErrorException):
- status = 401
+ status = 403
def __init__(
self, error: SupersetError, payload: Optional[Dict[str, Any]] = None