mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #4 from overleaf/handle-401
Handle 401 errors as ptorected projects
This commit is contained in:
+1
@@ -65,6 +65,7 @@ public class GetDocResult extends Result {
|
|||||||
JsonObject jsonObject = json.getAsJsonObject();
|
JsonObject jsonObject = json.getAsJsonObject();
|
||||||
if (jsonObject.has("status")) {
|
if (jsonObject.has("status")) {
|
||||||
switch (jsonObject.get("status").getAsInt()) {
|
switch (jsonObject.get("status").getAsInt()) {
|
||||||
|
case 401:
|
||||||
case 403:
|
case 403:
|
||||||
exception = new ProtectedProjectException();
|
exception = new ProtectedProjectException();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user