SMILA (incubation) API documentation

org.eclipse.smila.http.server
Class HttpStatus

java.lang.Object
  extended by org.eclipse.smila.http.server.HttpStatus

public final class HttpStatus
extends java.lang.Object

Utility class providing some HTTP standard status codes.


Field Summary
static int ACCEPTED
          The request has been accepted for processing, but the processing has not been completed.
static int BAD_REQUEST
          The request could not be understood by the server due to malformed syntax.
static int CREATED
          The request has been fulfilled and resulted in a new resource being created.
static int GONE
          The requested resource is no longer available at the server and no forwarding address is known.
static int INTERNAL_SERVER_ERROR
          The server encountered an unexpected condition which prevented it from fulfilling the request.
static int METHOD_NOT_ALLOWED
          The method is not allowed to access the request URI.
static int NO_CONTENT
          The server has fulfilled the request but does not need to return an entity-body.
static int NOT_FOUND
          The server has not found anything matching the request URI.
static int OK
          The request has succeeded.
static int SERVICE_UNAVAILABLE
          The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
static int UNKNOWN
          Does not belong to the HTTP standard status codes.
static int UNPROCESSABLE_ENTITY
          The syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.
 
Method Summary
static java.lang.String name(int status)
          Returns the name of the specified HTTP status code or null if the code is undefined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
Does not belong to the HTTP standard status codes.

See Also:
Constant Field Values

OK

public static final int OK
The request has succeeded.

See Also:
Constant Field Values

CREATED

public static final int CREATED
The request has been fulfilled and resulted in a new resource being created.

See Also:
Constant Field Values

ACCEPTED

public static final int ACCEPTED
The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place.

See Also:
Constant Field Values

NO_CONTENT

public static final int NO_CONTENT
The server has fulfilled the request but does not need to return an entity-body.

See Also:
Constant Field Values

BAD_REQUEST

public static final int BAD_REQUEST
The request could not be understood by the server due to malformed syntax.

See Also:
Constant Field Values

NOT_FOUND

public static final int NOT_FOUND
The server has not found anything matching the request URI.

See Also:
Constant Field Values

METHOD_NOT_ALLOWED

public static final int METHOD_NOT_ALLOWED
The method is not allowed to access the request URI.

See Also:
Constant Field Values

GONE

public static final int GONE
The requested resource is no longer available at the server and no forwarding address is known. This condition is expected to be considered permanent.

See Also:
Constant Field Values

UNPROCESSABLE_ENTITY

public static final int UNPROCESSABLE_ENTITY
The syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions. This code belongs to the status code extensions to HTTP/1.1.

See Also:
Constant Field Values

INTERNAL_SERVER_ERROR

public static final int INTERNAL_SERVER_ERROR
The server encountered an unexpected condition which prevented it from fulfilling the request.

See Also:
Constant Field Values

SERVICE_UNAVAILABLE

public static final int SERVICE_UNAVAILABLE
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.

See Also:
Constant Field Values
Method Detail

name

public static java.lang.String name(int status)
Returns the name of the specified HTTP status code or null if the code is undefined.

Parameters:
status - a status
Returns:
name for a status

SMILA (incubation) API documentation