diff options
author | Frederick Muriuki Muriithi | 2023-07-11 11:46:19 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-07-11 11:46:19 +0300 |
commit | 01ce1af9809d1ecf2e8db4636657ee4bd4551bcc (patch) | |
tree | 8e56ebc8f97f198b4103af3be7957f243237665b | |
parent | d35d28bab08a7ae21ba771f044a59fbbf3eafe74 (diff) | |
download | genenetwork2-01ce1af9809d1ecf2e8db4636657ee4bd4551bcc.tar.gz |
Handle HTTP status codes 4** in a special way.
-rw-r--r-- | wqflask/wqflask/oauth2/request_utils.py | 2 |
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}") |