Skip to content

Commit

Permalink
[raz] Provide a 403 error instead of 503
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshg999 committed Aug 31, 2021
1 parent 56aaeca commit 59359b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/core/src/desktop/lib/rest/raz_http_client.py
Expand Up @@ -56,7 +56,7 @@ def execute(self, http_method, path, params=None, data=None, headers=None, allow
if response and response.get('token'):
signed_url += ('?' if '?' not in url else '&') + response.get('token')
else:
raise PopupException(_('No SAS token in RAZ response'), error_code=503)
raise PopupException(_('No SAS token in RAZ response'), error_code=403)

# Required because `self._make_url` is called in base class execute method also
signed_path = path + signed_url.partition(path)[2]
Expand Down

0 comments on commit 59359b6

Please sign in to comment.