static HttpStatusType custom()

in azure-functions-java-core-library/src/main/java/com/microsoft/azure/functions/HttpStatusType.java [23:34]


    static HttpStatusType custom(final int code) {
        if (code <= 0) {
            throw new IllegalArgumentException("A positive integer must be provided.");
        }

        return new HttpStatusType() {
            @Override
            public int value() {
                return code;
            }
        };
    }