Skip to content

Commit 71916a1

Browse files
committed
Allowed every code to be requestable
Works on #1 (comment)
1 parent 5888794 commit 71916a1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/io/codebottle/api/rest/CodeBottleRequest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ public CodeBottleRequest<T> to(Endpoint endpoint, Object... at) throws IllegalAr
8383
}
8484

8585
public CodeBottleRequest<T> andExpect(@MagicConstant(valuesFromClass = HTTPCodes.class) int responseCode) throws IllegalArgumentException {
86-
if (HTTPCodes.getName(responseCode) == null)
87-
throw new IllegalArgumentException("Invalid code entered: " + responseCode);
88-
8986
this.expected = responseCode;
87+
9088
return this;
9189
}
9290

0 commit comments

Comments
 (0)