mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Handle 401 errors as ptorected projects
This commit is contained in:
parent
946c1d56be
commit
18bb534f96
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