w3c.model.www.pep.altlib.HttpErrors

w3c.model.www.pep.altlib.HttpErrors

package w3c.model.www.pep.altlib;

public interface HttpErrors 
    /* status codes */
    public final static int REQUEST_OK				= 0;
    public final static int REQUEST_BAD				= REQUEST_OK + 1;
    public final static int REQUEST_UNAUTHORIZED	= REQUEST_BAD + 1;
    public final static int REQUEST_FORBIDDEN		= REQUEST_UNAUTHORIZED + 1;
    public final static int REQUEST_NOT_FOUND		= REQUEST_FORBIDDEN + 1;
    public final static int REQUEST_BAD_EXTENSIONS	= REQUEST_NOT_FOUND + 1;
    public final static int REQUEST_BAD_MAPPING		= REQUEST_BAD_EXTENSIONS + 1;
    public final static int REQUEST_NOT_IMPLEMENTED	= REQUEST_BAD_MAPPING + 1;
    public final static int _STATUS_CODE_COUNT		= REQUEST_NOT_IMPLEMENTED + 1;
    final static String reasonPhrases[] = {"OK", "Bad Request", "Unauthorized", "Forbidden", "Not Found", "Bad Extensions", "Bad Mapping", "Not Implemented"};
    final static int statusCodes[] = {200, 400, 401, 403, 404, 420, 421, 501};