diff --git a/src/main/java/com/plugin/HttpOutput.java b/src/main/java/com/plugin/HttpOutput.java index 2dfc6e9..8b8149d 100644 --- a/src/main/java/com/plugin/HttpOutput.java +++ b/src/main/java/com/plugin/HttpOutput.java @@ -168,7 +168,7 @@ private void executeRequest(RequestBody requestBody) throws HttpOutputException, // ensure the response (and underlying response body) is closed try (Response response = this.httpClient.newCall(request).execute()) { - if (response.code() != 200) { + if (response.code() > 399) { LOG.info("Unexpected HTTP response status " + response.code()); if (this.raise_exception_on_http_error) { throw new HttpOutputException("Unexpected HTTP response status " + response.code());