Interface AccessDeniedAdviceTrait

  • All Superinterfaces:
    AdviceTrait, AdviceTrait
    All Known Subinterfaces:
    SecurityAdviceTrait

    @API(status=STABLE)
    public interface AccessDeniedAdviceTrait
    extends AdviceTrait
    The request was a valid request, but the server is refusing to respond to it. The user might be logged in but does not have the necessary permissions for the resource.
    • Method Detail

      • handleAccessDenied

        @API(status=INTERNAL)
        @ExceptionHandler
        default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleAccessDenied​(org.springframework.security.access.AccessDeniedException e,
                                                                                                        org.springframework.web.context.request.NativeWebRequest request)