@@ -0,0 +1,738 @@
+/*%0A * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one%0A * or more contributor license agreements. Licensed under the Elastic License;%0A * you may not use this file except in compliance with the Elastic License.%0A */%0Apackage org.elasticsearch.license.plugin.core;%0A%0Aimport org.elasticsearch.ElasticsearchException;%0Aimport org.elasticsearch.rest.RestStatus;%0A%0A/**%0A * Exception to be thrown when a feature action requires a valid license%0A */%0Apublic class ExpiredLicenseException extends ElasticsearchException %7B%0A%0A    public ExpiredLicenseException(String feature) %7B%0A        super(feature + %22 license has expired%22);%0A    %7D%0A%0A    @Override%0A    public RestStatus status() %7B%0A        return RestStatus.UNAUTHORIZED;%0A    %7D%0A%7D%0A

Add Generic ExpiredLicenseException