Interface HttpUtil.STATUS

Enclosing interface:
HttpUtil

public static interface HttpUtil.STATUS
The HTTP status codes as defined in RFC1945 (HTTP/1.0) and RFC2616 (HTTP/1.1).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    202 Accepted (HTTP/1.0 - RFC 1945)
    static final int
    502 Bad Gateway (HTTP/1.0 - RFC 1945)
    static final int
    400 Bad Request (HTTP/1.1 - RFC 2616)
    static final int
    409 Conflict (HTTP/1.1 - RFC 2616)
    static final int
    100 Continue (HTTP/1.1 - RFC 2616)
    static final int
    201 Created (HTTP/1.0 - RFC 1945)
    static final int
    417 Expectation Failed (HTTP/1.1 - RFC 2616)
    static final int
    403 Forbidden (HTTP/1.0 - RFC 1945)
    static final int
    302 Found (HTTP/1.1 - RFC 2616)
    static final int
    504 Gateway Timeout (HTTP/1.1 - RFC 2616)
    static final int
    410 Gone (HTTP/1.1 - RFC 2616)
    static final int
    505 HTTP Version Not Supported (HTTP/1.1 - RFC 2616)
    static final int
    500 Server Error (HTTP/1.0 - RFC 1945)
    static final int
    411 Length Required (HTTP/1.1 - RFC 2616)
    static final int
    405 Method Not Allowed (HTTP/1.1 - RFC 2616)
    static final int
    301 Moved Permanently (HTTP/1.0 - RFC 1945)
    static final int
    300 Multiple Choices (HTTP/1.1 - RFC 2616)
    static final int
    204 No Content (HTTP/1.0 - RFC 1945)
    static final int
    203 Non Authoritative Information (HTTP/1.1 - RFC 2616)
    static final int
    406 Not Acceptable (HTTP/1.1 - RFC 2616)
    static final int
    404 Not Found (HTTP/1.0 - RFC 1945)
    static final int
    501 Not Implemented (HTTP/1.0 - RFC 1945)
    static final int
    304 Not Modified (HTTP/1.0 - RFC 1945)
    static final int
    200 OK (HTTP/1.0 - RFC 1945)
    static final int
    206 Partial Content (HTTP/1.1 - RFC 2616)
    static final int
    402 Payment Required (HTTP/1.1 - RFC 2616)
    static final int
    412 Precondition Failed (HTTP/1.1 - RFC 2616)
    static final int
    407 Proxy Authentication Required (HTTP/1.1 - RFC 2616)
    static final int
    413 Request Entity Too Large (HTTP/1.1 - RFC 2616)
    static final int
    408 Request Timeout (HTTP/1.1 - RFC 2616)
    static final int
    414 Request-URI Too Long (HTTP/1.1 - RFC 2616)
    static final int
    416 Requested Range Not Satisfiable (HTTP/1.1 - RFC 2616)
    static final int
    205 Reset Content (HTTP/1.1 - RFC 2616)
    static final int
    303 See Other (HTTP/1.1 - RFC 2616)
    static final int
    503 Service Unavailable (HTTP/1.0 - RFC 1945)
    static final int
    101 Switching Protocols (HTTP/1.1 - RFC 2616)
    static final int
    307 Temporary Redirect (HTTP/1.1 - RFC 2616)
    static final int
    401 Unauthorized (HTTP/1.0 - RFC 1945)
    static final int
    415 Unsupported Media Type (HTTP/1.1 - RFC 2616)
    static final int
    305 Use Proxy (HTTP/1.1 - RFC 2616)
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static String
    asText(int status)
    Returns the HTTP status text corresponding to a status code.
  • Field Details

    • CONTINUE

      static final int CONTINUE
      100 Continue (HTTP/1.1 - RFC 2616)
      See Also:
    • SWITCHING_PROTOCOLS

      static final int SWITCHING_PROTOCOLS
      101 Switching Protocols (HTTP/1.1 - RFC 2616)
      See Also:
    • OK

      static final int OK
      200 OK (HTTP/1.0 - RFC 1945)
      See Also:
    • CREATED

      static final int CREATED
      201 Created (HTTP/1.0 - RFC 1945)
      See Also:
    • ACCEPTED

      static final int ACCEPTED
      202 Accepted (HTTP/1.0 - RFC 1945)
      See Also:
    • NON_AUTHORITATIVE_INFORMATION

      static final int NON_AUTHORITATIVE_INFORMATION
      203 Non Authoritative Information (HTTP/1.1 - RFC 2616)
      See Also:
    • NO_CONTENT

      static final int NO_CONTENT
      204 No Content (HTTP/1.0 - RFC 1945)
      See Also:
    • RESET_CONTENT

      static final int RESET_CONTENT
      205 Reset Content (HTTP/1.1 - RFC 2616)
      See Also:
    • PARTIAL_CONTENT

      static final int PARTIAL_CONTENT
      206 Partial Content (HTTP/1.1 - RFC 2616)
      See Also:
    • MULTIPLE_CHOICES

      static final int MULTIPLE_CHOICES
      300 Multiple Choices (HTTP/1.1 - RFC 2616)
      See Also:
    • MOVED_PERMANENTLY

      static final int MOVED_PERMANENTLY
      301 Moved Permanently (HTTP/1.0 - RFC 1945)
      See Also:
    • FOUND

      static final int FOUND
      302 Found (HTTP/1.1 - RFC 2616)
      See Also:
    • SEE_OTHER

      static final int SEE_OTHER
      303 See Other (HTTP/1.1 - RFC 2616)
      See Also:
    • NOT_MODIFIED

      static final int NOT_MODIFIED
      304 Not Modified (HTTP/1.0 - RFC 1945)
      See Also:
    • USE_PROXY

      static final int USE_PROXY
      305 Use Proxy (HTTP/1.1 - RFC 2616)
      See Also:
    • TEMPORARY_REDIRECT

      static final int TEMPORARY_REDIRECT
      307 Temporary Redirect (HTTP/1.1 - RFC 2616)
      See Also:
    • BAD_REQUEST

      static final int BAD_REQUEST
      400 Bad Request (HTTP/1.1 - RFC 2616)
      See Also:
    • UNAUTHORIZED

      static final int UNAUTHORIZED
      401 Unauthorized (HTTP/1.0 - RFC 1945)
      See Also:
    • PAYMENT_REQUIRED

      static final int PAYMENT_REQUIRED
      402 Payment Required (HTTP/1.1 - RFC 2616)
      See Also:
    • FORBIDDEN

      static final int FORBIDDEN
      403 Forbidden (HTTP/1.0 - RFC 1945)
      See Also:
    • NOT_FOUND

      static final int NOT_FOUND
      404 Not Found (HTTP/1.0 - RFC 1945)
      See Also:
    • METHOD_NOT_ALLOWED

      static final int METHOD_NOT_ALLOWED
      405 Method Not Allowed (HTTP/1.1 - RFC 2616)
      See Also:
    • NOT_ACCEPTABLE

      static final int NOT_ACCEPTABLE
      406 Not Acceptable (HTTP/1.1 - RFC 2616)
      See Also:
    • PROXY_AUTHENTICATION_REQUIRED

      static final int PROXY_AUTHENTICATION_REQUIRED
      407 Proxy Authentication Required (HTTP/1.1 - RFC 2616)
      See Also:
    • REQUEST_TIMEOUT

      static final int REQUEST_TIMEOUT
      408 Request Timeout (HTTP/1.1 - RFC 2616)
      See Also:
    • CONFLICT

      static final int CONFLICT
      409 Conflict (HTTP/1.1 - RFC 2616)
      See Also:
    • GONE

      static final int GONE
      410 Gone (HTTP/1.1 - RFC 2616)
      See Also:
    • LENGTH_REQUIRED

      static final int LENGTH_REQUIRED
      411 Length Required (HTTP/1.1 - RFC 2616)
      See Also:
    • PRECONDITION_FAILED

      static final int PRECONDITION_FAILED
      412 Precondition Failed (HTTP/1.1 - RFC 2616)
      See Also:
    • REQUEST_ENTITY_TOO_LARGE

      static final int REQUEST_ENTITY_TOO_LARGE
      413 Request Entity Too Large (HTTP/1.1 - RFC 2616)
      See Also:
    • REQUEST_URI_TOO_LONG

      static final int REQUEST_URI_TOO_LONG
      414 Request-URI Too Long (HTTP/1.1 - RFC 2616)
      See Also:
    • UNSUPPORTED_MEDIA_TYPE

      static final int UNSUPPORTED_MEDIA_TYPE
      415 Unsupported Media Type (HTTP/1.1 - RFC 2616)
      See Also:
    • REQUESTED_RANGE_NOT_SATISFIABLE

      static final int REQUESTED_RANGE_NOT_SATISFIABLE
      416 Requested Range Not Satisfiable (HTTP/1.1 - RFC 2616)
      See Also:
    • EXPECTATION_FAILED

      static final int EXPECTATION_FAILED
      417 Expectation Failed (HTTP/1.1 - RFC 2616)
      See Also:
    • INTERNAL_SERVER_ERROR

      static final int INTERNAL_SERVER_ERROR
      500 Server Error (HTTP/1.0 - RFC 1945)
      See Also:
    • NOT_IMPLEMENTED

      static final int NOT_IMPLEMENTED
      501 Not Implemented (HTTP/1.0 - RFC 1945)
      See Also:
    • BAD_GATEWAY

      static final int BAD_GATEWAY
      502 Bad Gateway (HTTP/1.0 - RFC 1945)
      See Also:
    • SERVICE_UNAVAILABLE

      static final int SERVICE_UNAVAILABLE
      503 Service Unavailable (HTTP/1.0 - RFC 1945)
      See Also:
    • GATEWAY_TIMEOUT

      static final int GATEWAY_TIMEOUT
      504 Gateway Timeout (HTTP/1.1 - RFC 2616)
      See Also:
    • HTTP_VERSION_NOT_SUPPORTED

      static final int HTTP_VERSION_NOT_SUPPORTED
      505 HTTP Version Not Supported (HTTP/1.1 - RFC 2616)
      See Also:
  • Method Details

    • asText

      static String asText(int status)
      Returns the HTTP status text corresponding to a status code.
      Parameters:
      status - the HTTP status code
      Returns:
      the corresponding HTTP status text, or "Unknown" if not recognized