diff --git a/crime-evidence/src/main/java/uk/gov/justice/laa/crime/evidence/exception/CrimeEvidenceExceptionHandler.java b/crime-evidence/src/main/java/uk/gov/justice/laa/crime/evidence/exception/CrimeEvidenceExceptionHandler.java index 9f4b6f5..202e96d 100644 --- a/crime-evidence/src/main/java/uk/gov/justice/laa/crime/evidence/exception/CrimeEvidenceExceptionHandler.java +++ b/crime-evidence/src/main/java/uk/gov/justice/laa/crime/evidence/exception/CrimeEvidenceExceptionHandler.java @@ -18,7 +18,7 @@ public class CrimeEvidenceExceptionHandler { private final TraceIdHandler traceIdHandler; private static ResponseEntity buildErrorResponse(HttpStatus status, String errorMessage, String traceId) { - return new ResponseEntity<>(ErrorDTO.builder().code(status.toString()).message(errorMessage).build(), status); + return new ResponseEntity<>(ErrorDTO.builder().traceId(traceId).code(status.toString()).message(errorMessage).build(), status); } @ExceptionHandler(APIClientException.class)