From 892e973e41b9226b0cf1ae1065a8ae56e9cb926b Mon Sep 17 00:00:00 2001 From: Dominik Guggemos Date: Thu, 11 Jan 2018 13:00:25 +0100 Subject: [PATCH] add ditto headers to generic exception too Signed-off-by: Dominik Guggemos --- .../ditto/signals/commands/things/ThingErrorResponse.java | 1 + 1 file changed, 1 insertion(+) diff --git a/signals/commands/things/src/main/java/org/eclipse/ditto/signals/commands/things/ThingErrorResponse.java b/signals/commands/things/src/main/java/org/eclipse/ditto/signals/commands/things/ThingErrorResponse.java index e246c308d3..58b495509d 100755 --- a/signals/commands/things/src/main/java/org/eclipse/ditto/signals/commands/things/ThingErrorResponse.java +++ b/signals/commands/things/src/main/java/org/eclipse/ditto/signals/commands/things/ThingErrorResponse.java @@ -185,6 +185,7 @@ public static ThingErrorResponse fromJson(final ThingErrorRegistry thingErrorReg HttpStatusCode.forInt(status).orElse(HttpStatusCode.INTERNAL_SERVER_ERROR)) .message(errorMessage) .description(errorDescription) + .dittoHeaders(dittoHeaders) .build(); }