@@ -0,0 +1,893 @@
+package no.uio.ifi.trackfind.backend.rest.handlers;%0A%0Aimport org.springframework.http.HttpHeaders;%0Aimport org.springframework.http.HttpStatus;%0Aimport org.springframework.http.ResponseEntity;%0Aimport org.springframework.web.bind.annotation.ControllerAdvice;%0Aimport org.springframework.web.bind.annotation.ExceptionHandler;%0Aimport org.springframework.web.context.request.WebRequest;%0Aimport org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;%0A%0A@ControllerAdvice%0Apublic class RestResponseEntityExceptionHandler extends ResponseEntityExceptionHandler %7B%0A%0A    @SuppressWarnings(%22unused%22)%0A    @ExceptionHandler(value = Exception.class)%0A    protected ResponseEntity%3CObject%3E handle(Exception exception, WebRequest request) %7B%0A        return handleExceptionInternal(exception, exception.getMessage(), new HttpHeaders(), HttpStatus.INTERNAL_SERVER_ERROR, request);%0A    %7D%0A%0A%7D%0A

Add RestResponseEntityExceptionHandler.