about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/oauth2/request_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/oauth2/request_utils.py b/wqflask/wqflask/oauth2/request_utils.py
index 124d5d7e..987b3c7d 100644
--- a/wqflask/wqflask/oauth2/request_utils.py
+++ b/wqflask/wqflask/oauth2/request_utils.py
@@ -31,7 +31,7 @@ def process_error(error: Response,
                   message: str=("Requested endpoint was not found on the API "
                                 "server.")
                   ) -> dict:
-    if error.status_code in (401, 404):
+    if error.status_code in range(400, 500):
         try:
             err = error.json()
             msg = err.get("error_description", f"{error.reason}")