diff options
author | Kevin Sawicki | 2012-01-12 22:29:59 +0000 |
---|---|---|
committer | Kevin Sawicki | 2012-01-12 22:29:59 +0000 |
commit | a0495246dbf4a51a3b29fd182b060be9043f3e7a (patch) | |
tree | de14294a534d9a69458a3130dc0460f294fc5cfc | |
parent | 55a869ef5ac43b805439646f9dce550224cc7ca8 (diff) | |
download | egit-github-a0495246dbf4a51a3b29fd182b060be9043f3e7a.tar.gz egit-github-a0495246dbf4a51a3b29fd182b060be9043f3e7a.tar.xz egit-github-a0495246dbf4a51a3b29fd182b060be9043f3e7a.zip |
Treat 410 (Gone) response codes as parseable JSON errors
Change-Id: Ie74a98bf2c5ec0b0ad9b49a78f1e8539a67426f1
-rw-r--r-- | org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java | 2 |
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; |