mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-25 00:21:30 +00:00
Merge pull request #4 from overleaf/handle-401
Handle 401 errors as ptorected projects
This commit is contained in:
commit
dcaf2d0fa6
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ public class GetDocResult extends Result {
|
|||
JsonObject jsonObject = json.getAsJsonObject();
|
||||
if (jsonObject.has("status")) {
|
||||
switch (jsonObject.get("status").getAsInt()) {
|
||||
case 401:
|
||||
case 403:
|
||||
exception = new ProtectedProjectException();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue