/FileExtraction/Java_unseen/GenSpectrum_LAPIS/server/src/main/java/ch/ethz/lapis/api/exception/GisaidLimitationException.java
package ch.ethz.lapis.api.exception;

import ch.ethz.lapis.api.entity.res.ErrorEntry;
import java.util.ArrayList;
import java.util.List;
import org.springframework.http.HttpStatus;


public class GisaidLimitationException extends BaseApiException {

    @Override
    public HttpStatus getHttpStatus() {
        return HttpStatus.FORBIDDEN;
    }

    @Override
    public List<ErrorEntry> getErrorEntries() {
        return new ArrayList<>() {{
            add(new ErrorEntry(
                "This instance of LAPIS uses the GISAID dataset which does not support this operation."
            ));
        }};
    }
}
