summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-19 18:54:11 (EDT)
committerChris Aniszczyk2011-04-19 18:55:30 (EDT)
commitd00ce7b58e4a2330a8027206a9e772f995376585 (patch)
tree42d114b6d20e69fe33cba84833e6332115f58eb9
parent606777402ad2a5f0cf41c05145dd1ae6a930ebdc (diff)
downloadegit-github-d00ce7b58e4a2330a8027206a9e772f995376585.zip
egit-github-d00ce7b58e4a2330a8027206a9e772f995376585.tar.gz
egit-github-d00ce7b58e4a2330a8027206a9e772f995376585.tar.bz2
Add support for 401 and 403 statuses now returned in the APIrefs/changes/77/3177/2
Change-Id: I3cdbf62494b328c47f655f215a3063e3c6fe411f Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java
index 594f373..665cfb9 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java
@@ -210,6 +210,8 @@ public class GitHubClient {
case 200:
return method.getResponseBodyAsStream();
case 400:
+ case 401:
+ case 403:
case 404:
case 500:
RequestError error = parseJson(method, RequestError.class);
@@ -244,6 +246,8 @@ public class GitHubClient {
case 200:
return parseJson(method, type);
case 400:
+ case 401:
+ case 403:
case 404:
case 500:
RequestError error = parseJson(method, RequestError.class);
@@ -288,6 +292,8 @@ public class GitHubClient {
case 204:
break;
case 400:
+ case 401:
+ case 403:
case 404:
case 500:
RequestError error = parseJson(method, RequestError.class);