@ExceptionHandler(AccessDeniedException.class)
  public ResponseEntity<ClusterManagementResult> handleException(
      final AccessDeniedException cause) {
    return new ResponseEntity<>(
        new ClusterManagementResult(StatusCode.UNAUTHORIZED,
            cause.getMessage()),
        HttpStatus.FORBIDDEN);
  }
Handles an AccessDenied Exception thrown by a REST API web service endpoint, HTTP request
handler method.
<p>

@param cause the Exception causing the error.
@return a ResponseEntity with an appropriate HTTP status code (403 - Forbidden)
geode-web-management/src/main/java/org/apache/geode/management/internal/rest/controllers/ManagementControllerAdvice.java