mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 18:20:09 +02:00
Merge pull request #4 from overleaf/handle-401
Handle 401 errors as ptorected projects
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user