All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.ode.utils.http.StatusCode Maven / Gradle / Ivy

There is a newer version: 1.3.8
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.ode.utils.http;

import java.util.regex.Pattern;

/**
 *
 * HTTP/1.1 Status Codes
 */
public class StatusCode {


    // --- 1xx Informational ---

    /** 100 Continue (HTTP/1.1 - RFC 2616) */
    public static final int _100_CONTINUE = 100;
    /** 101 Switching Protocols (HTTP/1.1 - RFC 2616)*/
    public static final int _101_SWITCHING_PROTOCOLS = 101;

    // --- 2xx Success ---

    /** 200 OK (HTTP/1.0 - RFC 1945) */
    public static final int _200_OK = 200;
    /** 201 Created (HTTP/1.0 - RFC 1945) */
    public static final int _201_CREATED = 201;
    /** 202 Accepted (HTTP/1.0 - RFC 1945) */
    public static final int _202_ACCEPTED = 202;
    /** 203 Non Authoritative Information (HTTP/1.1 - RFC 2616) */
    public static final int _203_NON_AUTHORITATIVE_INFORMATION = 203;
    /** 204 No Content (HTTP/1.0 - RFC 1945) */
    public static final int _204_NO_CONTENT = 204;
    /** 205 Reset Content (HTTP/1.1 - RFC 2616) */
    public static final int _205_RESET_CONTENT = 205;
    /** 206 Partial Content (HTTP/1.1 - RFC 2616) */
    public static final int _206_PARTIAL_CONTENT = 206;

    // --- 3xx Redirection ---

    /** 300 Mutliple Choices (HTTP/1.1 - RFC 2616) */
    public static final int _300_MULTIPLE_CHOICES = 300;
    /** 301 Moved Permanently (HTTP/1.0 - RFC 1945) */
    public static final int _301_MOVED_PERMANENTLY = 301;
    /** 302 Moved Temporarily (Sometimes Found) (HTTP/1.0 - RFC 1945) */
    public static final int _302_MOVED_TEMPORARILY = 302;
    /** 303 See Other (HTTP/1.1 - RFC 2616) */
    public static final int _303_SEE_OTHER = 303;
    /** 304 Not Modified (HTTP/1.0 - RFC 1945) */
    public static final int _304_NOT_MODIFIED = 304;
    /** 305 Use Proxy (HTTP/1.1 - RFC 2616) */
    public static final int _305_USE_PROXY = 305;
    /** 307 Temporary Redirect (HTTP/1.1 - RFC 2616) */
    public static final int _307_TEMPORARY_REDIRECT = 307;

    // --- 4xx Client Error ---

    /** 400 Bad Request (HTTP/1.1 - RFC 2616) */
    public static final int _400_BAD_REQUEST = 400;
    /** 401 Unauthorized (HTTP/1.0 - RFC 1945) */
    public static final int _401_UNAUTHORIZED = 401;
    /** 402 Payment Required (HTTP/1.1 - RFC 2616) */
    public static final int _402_PAYMENT_REQUIRED = 402;
    /** 403 Forbidden (HTTP/1.0 - RFC 1945) */
    public static final int _403_FORBIDDEN = 403;
    /** 404 Not Found (HTTP/1.0 - RFC 1945) */
    public static final int _404_NOT_FOUND = 404;
    /** 405 Method Not Allowed (HTTP/1.1 - RFC 2616) */
    public static final int _405_METHOD_NOT_ALLOWED = 405;
    /** 406 Not Acceptable (HTTP/1.1 - RFC 2616) */
    public static final int _406_NOT_ACCEPTABLE = 406;
    /** 407 Proxy Authentication Required (HTTP/1.1 - RFC 2616)*/
    public static final int _407_PROXY_AUTHENTICATION_REQUIRED = 407;
    /** 408 Request Timeout (HTTP/1.1 - RFC 2616) */
    public static final int _408_REQUEST_TIMEOUT = 408;
    /** 409 Conflict (HTTP/1.1 - RFC 2616) */
    public static final int _409_CONFLICT = 409;
    /** 410 Gone (HTTP/1.1 - RFC 2616) */
    public static final int _410_GONE = 410;
    /** 411 Length Required (HTTP/1.1 - RFC 2616) */
    public static final int _411_LENGTH_REQUIRED = 411;
    /** 412 Precondition Failed (HTTP/1.1 - RFC 2616) */
    public static final int _412_PRECONDITION_FAILED = 412;
    /** 413 Request Entity Too Large (HTTP/1.1 - RFC 2616) */
    public static final int _413_REQUEST_TOO_LONG = 413;
    /** 414 Request-URI Too Long (HTTP/1.1 - RFC 2616) */
    public static final int _414_REQUEST_URI_TOO_LONG = 414;
    /** 415 Unsupported Media Type (HTTP/1.1 - RFC 2616) */
    public static final int _415_UNSUPPORTED_MEDIA_TYPE = 415;
    /** 416 Requested Range Not Satisfiable (HTTP/1.1 - RFC 2616) */
    public static final int _416_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
    /** 417 Expectation Failed (HTTP/1.1 - RFC 2616) */
    public static final int _417_EXPECTATION_FAILED = 417;

    // --- 5xx Server Error ---

    /** 500 Server Error (HTTP/1.0 - RFC 1945) */
    public static final int _500_INTERNAL_SERVER_ERROR = 500;
    /** 501 Not Implemented (HTTP/1.0 - RFC 1945) */
    public static final int _501_NOT_IMPLEMENTED = 501;
    /** 502 Bad Gateway (HTTP/1.0 - RFC 1945) */
    public static final int _502_BAD_GATEWAY = 502;
    /** 503 Service Unavailable (HTTP/1.0 - RFC 1945) */
    public static final int _503_SERVICE_UNAVAILABLE = 503;
    /** 504 Gateway Timeout (HTTP/1.1 - RFC 2616) */
    public static final int _504_GATEWAY_TIMEOUT = 504;
    /** 505 HTTP Version Not Supported (HTTP/1.1 - RFC 2616) */
    public static final int _505_HTTP_VERSION_NOT_SUPPORTED = 505;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy