Browse Source

[raz] Provide a 403 error instead of 503

Harshg999 4 years ago
parent
commit
59359b6332
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/lib/rest/raz_http_client.py

+ 1 - 1
desktop/core/src/desktop/lib/rest/raz_http_client.py

@@ -56,7 +56,7 @@ class RazHttpClient(HttpClient):
     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]