core/play/src/main/java/play/http/DefaultHttpErrorHandler.java
protected CompletionStage<Result> onForbidden(RequestHeader request, String message) {
    return CompletableFuture.completedFuture(
        Results.forbidden(views.html.defaultpages.unauthorized.render(request.asScala())));
  }
protected CompletionStage<Result> onForbidden(RequestHeader request, String message) {
    return CompletableFuture.completedFuture(
        Results.forbidden(views.html.defaultpages.unauthorized.render(request.asScala())));
  }
Invoked when a client makes a request that was forbidden.

<p>Returns Results.forbidden (401) with the included template from {@code
views.html.defaultpages.unauthorized} as the content.

@param request The forbidden request.
@param message The error message.
@return a CompletionStage containing the Result.