diff --git a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java index eb7d92901..b10a09a0e 100644 --- a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java +++ b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java @@ -216,7 +216,7 @@ public class IndegoController { throw new IndegoAuthenticationException("Context rejected"); } if (!HttpStatus.isSuccess(status)) { - throw new IndegoAuthenticationException("The request failed with HTTP error: " + status); + throw new IndegoException("The request failed with error: " + status); } String jsonResponse = response.getContentAsString(); if (jsonResponse.isEmpty()) {