diff --git a/crnk-core/src/main/java/io/crnk/core/engine/error/ExceptionMapperHelper.java b/crnk-core/src/main/java/io/crnk/core/engine/error/ExceptionMapperHelper.java index 8618d1259..0fd6eaa02 100644 --- a/crnk-core/src/main/java/io/crnk/core/engine/error/ExceptionMapperHelper.java +++ b/crnk-core/src/main/java/io/crnk/core/engine/error/ExceptionMapperHelper.java @@ -22,7 +22,8 @@ public static ErrorResponse toErrorResponse(Throwable exception, int statusCode, builder = builder.addMetaField(ExceptionMapperHelper.META_TYPE_KEY, metaTypeValue); builder = builder.setStatus(String.valueOf(statusCode)); builder = builder.setCode(exception.getMessage()); - builder = builder.setTitle(exception.getLocalizedMessage()); + builder = builder.setDetail(exception.getLocalizedMessage()); + builder = builder.setTitle(exception.getCause().getClass().getSimpleName()); ErrorData error = builder.build(); errors.add(error);