code: public WebApplicationException authorizationFail(String ticket, AuthorizationFailRequest.Reason reason)
      {
          // Create a response to the client application with the help of
          // Authlete's /api/auth/authorization/fail API.
          Response response = createAuthorizationFailResponse(ticket, reason);
  
          // Create an exception containing the response.
          return new WebApplicationException(response);
      }
docs: Create an exception that describes the failure. This method
  calls Authlete's {@code /api/auth/authorization/fail} API.