diff --git a/server/pom.xml b/server/pom.xml index a165fab40..52e6d8f2c 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -13,7 +13,7 @@ 1.2.3 - 4.0.3 + 4.1.0 5.7.2 3.19.0 3.10.0 diff --git a/server/src/main/java/io/kroki/server/action/Delegator.java b/server/src/main/java/io/kroki/server/action/Delegator.java index 171427911..6a65475f6 100644 --- a/server/src/main/java/io/kroki/server/action/Delegator.java +++ b/server/src/main/java/io/kroki/server/action/Delegator.java @@ -12,7 +12,7 @@ import io.vertx.core.json.JsonObject; import io.vertx.ext.web.client.HttpResponse; import io.vertx.ext.web.client.WebClient; -import io.vertx.ext.web.handler.impl.HttpStatusException; +import io.vertx.ext.web.handler.HttpException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -45,13 +45,13 @@ public static Handler>> createHandler(String ho if (json != null) { handler.handle(new Failure(new BadRequestException(json.getString("error", "Unexpected error")))); } else { - handler.handle(new Failure(new HttpStatusException(httpResponse.statusCode()))); + handler.handle(new Failure(new HttpException(httpResponse.statusCode()))); } } catch (DecodeException e) { - handler.handle(new Failure(new HttpStatusException(httpResponse.statusCode()))); + handler.handle(new Failure(new HttpException(httpResponse.statusCode()))); } } else { - handler.handle(new Failure(new HttpStatusException(httpResponse.statusCode()))); + handler.handle(new Failure(new HttpException(httpResponse.statusCode()))); } } } else {