HttpConstants.java 893 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.cq.aam.client;

import java.util.HashSet;
import java.util.Set;

public final class HttpConstants {
    public static final int HTTP_RESPONSE_FORBIDDEN = 403;
    public static final int HTTP_RESPONSE_NOT_AUTHORISED = 401;
    public static final int HTTP_RESPONSE_OK = 200;
    public static final int HTTP_RESPONSE_REDIRECT = 302;
    public static final int HTTP_RESPONSE_CREATED = 201;
    public static final int HTTP_RESPONSE_NO_CONTENT = 204;
    public static final int HTTP_BAD_REQUEST = 400;
    public static final int MAX_RESPONSE_SIZE = 1048576;
    public static final Set<Integer> DENIED_CODES = HttpConstants.accessDeniedCodes();

    private HttpConstants() {
    }

    private static Set<Integer> accessDeniedCodes() {
        HashSet<Integer> s = new HashSet<Integer>();
        s.add(401);
        return s;
    }
}