Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2012-01-12 22:29:59 +0000
committerKevin Sawicki2012-01-12 22:29:59 +0000
commita0495246dbf4a51a3b29fd182b060be9043f3e7a (patch)
treede14294a534d9a69458a3130dc0460f294fc5cfc /org.eclipse.egit.github.core/src
parent55a869ef5ac43b805439646f9dce550224cc7ca8 (diff)
downloadegit-github-a0495246dbf4a51a3b29fd182b060be9043f3e7a.tar.gz
egit-github-a0495246dbf4a51a3b29fd182b060be9043f3e7a.tar.xz
egit-github-a0495246dbf4a51a3b29fd182b060be9043f3e7a.zip
Treat 410 (Gone) response codes as parseable JSON errors
Diffstat (limited to 'org.eclipse.egit.github.core/src')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
index f988d77b..82ce17d6 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
@@ -14,6 +14,7 @@ package org.eclipse.egit.github.core.client;
import static java.net.HttpURLConnection.HTTP_BAD_REQUEST;
import static java.net.HttpURLConnection.HTTP_CREATED;
import static java.net.HttpURLConnection.HTTP_FORBIDDEN;
+import static java.net.HttpURLConnection.HTTP_GONE;
import static java.net.HttpURLConnection.HTTP_INTERNAL_ERROR;
import static java.net.HttpURLConnection.HTTP_NOT_FOUND;
import static java.net.HttpURLConnection.HTTP_NO_CONTENT;
@@ -417,6 +418,7 @@ public class GitHubClient {
case HTTP_UNAUTHORIZED:
case HTTP_FORBIDDEN:
case HTTP_NOT_FOUND:
+ case HTTP_GONE:
case HTTP_UNPROCESSABLE_ENTITY:
case HTTP_INTERNAL_ERROR:
return true;

Back to the top