code: static void accessFailed() throws Throwable
      {
          String controllerClassName = getControllerClass().getName();
          Logger.debug("Deadbolt: Access failure on [%s]",
                       controllerClassName);
  
          String responseFormat = null;
          if (getActionAnnotation(JSON.class) != null)
          {
              responseFormat = "json";
          }
          else if (getActionAnnotation(XML.class) != null)
          {
              responseFormat = "xml";
          }
          else if (getControllerAnnotation(JSON.class) != null)
          {
              responseFormat = "json";
          }
          else if (getControllerAnnotation(XML.class) != null)
          {
              responseFormat = "xml";
          }
          else
          {
              String defaultResponseFormat = Play.configuration.getProperty(DEFAULT_RESPONSE_FORMAT);
              if (!isEmpty(defaultResponseFormat))
              {
                  responseFormat = defaultResponseFormat;
              }
          }
  
          if (!isEmpty(responseFormat))
          {
              request.format = responseFormat;
          }
  
          DEADBOLT_HANDLER.onAccessFailure(controllerClassName);
  
      }
docs: Generic access failure forwarding point.