diff --git a/src/main/java/com/jcabi/github/RtCollaborators.java b/src/main/java/com/jcabi/github/RtCollaborators.java index b784bc2f5..104674f5f 100644 --- a/src/main/java/com/jcabi/github/RtCollaborators.java +++ b/src/main/java/com/jcabi/github/RtCollaborators.java @@ -114,7 +114,12 @@ public void add( .uri().path(user).back() .fetch() .as(RestResponse.class) - .assertStatus(HttpURLConnection.HTTP_NO_CONTENT); + .assertStatus( + Matchers.isOneOf( + HttpURLConnection.HTTP_NO_CONTENT, + HttpURLConnection.HTTP_CREATED + ) + ); } @Override