@@ -0,0 +1,700 @@
+package org.gbif.ws.server.mapper;%0A%0Aimport org.springframework.http.HttpStatus;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.http.ResponseEntity;%0Aimport org.springframework.security.access.AccessDeniedException;%0Aimport org.springframework.web.bind.annotation.ControllerAdvice;%0Aimport org.springframework.web.bind.annotation.ExceptionHandler;%0A%0A@ControllerAdvice%0Apublic class AccessDeniedExceptionMapper %7B%0A%0A  @ExceptionHandler(AccessDeniedException.class)%0A  public ResponseEntity%3CObject%3E toResponse(AccessDeniedException exception) %7B%0A    return ResponseEntity.status(HttpStatus.FORBIDDEN)%0A        .contentType(MediaType.TEXT_PLAIN)%0A        .body(exception.getMessage());%0A  %7D%0A%7D%0A

Add AccessDeniedExceptionMapper