Package org.omegazero.http.util
Class HTTPStatus
java.lang.Object
org.omegazero.http.util.HTTPStatus
Contains standard or widely used HTTP status code numbers.
- Since:
- 1.2.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getStatusName
(int status) Returns a user-friendly string representation for each status code defined in this class.
-
Field Details
-
STATUS_CONTINUE
public static final int STATUS_CONTINUE- See Also:
-
STATUS_SWITCHING_PROTOCOLS
public static final int STATUS_SWITCHING_PROTOCOLS- See Also:
-
STATUS_PROCESSING
public static final int STATUS_PROCESSING- See Also:
-
STATUS_EARLY_HINTS
public static final int STATUS_EARLY_HINTS- See Also:
-
STATUS_OK
public static final int STATUS_OK- See Also:
-
STATUS_CREATED
public static final int STATUS_CREATED- See Also:
-
STATUS_ACCEPTED
public static final int STATUS_ACCEPTED- See Also:
-
STATUS_NON_AUTHORITATIVE
public static final int STATUS_NON_AUTHORITATIVE- See Also:
-
STATUS_NO_CONTENT
public static final int STATUS_NO_CONTENT- See Also:
-
STATUS_RESET_CONTENT
public static final int STATUS_RESET_CONTENT- See Also:
-
STATUS_PARTIAL_CONTENT
public static final int STATUS_PARTIAL_CONTENT- See Also:
-
STATUS_MULTIPLE_CHOICES
public static final int STATUS_MULTIPLE_CHOICES- See Also:
-
STATUS_MOVED_PERMANENTLY
public static final int STATUS_MOVED_PERMANENTLY- See Also:
-
STATUS_FOUND
public static final int STATUS_FOUND- See Also:
-
STATUS_SEE_OTHER
public static final int STATUS_SEE_OTHER- See Also:
-
STATUS_NOT_MODIFIED
public static final int STATUS_NOT_MODIFIED- See Also:
-
STATUS_TEMPORARY_REDIRECT
public static final int STATUS_TEMPORARY_REDIRECT- See Also:
-
STATUS_PERMANENT_REDIRECT
public static final int STATUS_PERMANENT_REDIRECT- See Also:
-
STATUS_BAD_REQUEST
public static final int STATUS_BAD_REQUEST- See Also:
-
STATUS_UNAUTHORIZED
public static final int STATUS_UNAUTHORIZED- See Also:
-
STATUS_FORBIDDEN
public static final int STATUS_FORBIDDEN- See Also:
-
STATUS_NOT_FOUND
public static final int STATUS_NOT_FOUND- See Also:
-
STATUS_METHOD_NOT_ALLOWED
public static final int STATUS_METHOD_NOT_ALLOWED- See Also:
-
STATUS_NOT_ACCEPTABLE
public static final int STATUS_NOT_ACCEPTABLE- See Also:
-
STATUS_PROXY_AUTHENTICATION_REQUIRED
public static final int STATUS_PROXY_AUTHENTICATION_REQUIRED- See Also:
-
STATUS_REQUEST_TIMEOUT
public static final int STATUS_REQUEST_TIMEOUT- See Also:
-
STATUS_CONFLICT
public static final int STATUS_CONFLICT- See Also:
-
STATUS_GONE
public static final int STATUS_GONE- See Also:
-
STATUS_LENGTH_REQUIRED
public static final int STATUS_LENGTH_REQUIRED- See Also:
-
STATUS_PRECONDITION_REQUIRED
public static final int STATUS_PRECONDITION_REQUIRED- See Also:
-
STATUS_PAYLOAD_TOO_LARGE
public static final int STATUS_PAYLOAD_TOO_LARGE- See Also:
-
STATUS_URI_TOO_LONG
public static final int STATUS_URI_TOO_LONG- See Also:
-
STATUS_UNSUPPORTED_MEDIA_TYPE
public static final int STATUS_UNSUPPORTED_MEDIA_TYPE- See Also:
-
STATUS_RANGE_NOT_SATISFIABLE
public static final int STATUS_RANGE_NOT_SATISFIABLE- See Also:
-
STATUS_EXPECTATION_FAILED
public static final int STATUS_EXPECTATION_FAILED- See Also:
-
STATUS_IM_A_TEAPOT
public static final int STATUS_IM_A_TEAPOT- See Also:
-
STATUS_UPGRADE_REQUIRED
public static final int STATUS_UPGRADE_REQUIRED- See Also:
-
STATUS_PRECONDITION_FAILED
public static final int STATUS_PRECONDITION_FAILED- See Also:
-
STATUS_TOO_MANY_REQUESTS
public static final int STATUS_TOO_MANY_REQUESTS- See Also:
-
STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE
public static final int STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE- See Also:
-
STATUS_UNAVAILABLE_FOR_LEGAL_REASONS
public static final int STATUS_UNAVAILABLE_FOR_LEGAL_REASONS- See Also:
-
STATUS_INTERNAL_SERVER_ERROR
public static final int STATUS_INTERNAL_SERVER_ERROR- See Also:
-
STATUS_NOT_IMPLEMENTED
public static final int STATUS_NOT_IMPLEMENTED- See Also:
-
STATUS_BAD_GATEWAY
public static final int STATUS_BAD_GATEWAY- See Also:
-
STATUS_SERVICE_UNAVAILABLE
public static final int STATUS_SERVICE_UNAVAILABLE- See Also:
-
STATUS_GATEWAY_TIMEOUT
public static final int STATUS_GATEWAY_TIMEOUT- See Also:
-
STATUS_HTTP_VERSION_NOT_SUPPORTED
public static final int STATUS_HTTP_VERSION_NOT_SUPPORTED- See Also:
-
STATUS_VARIANT_ALSO_NEGOTIATES
public static final int STATUS_VARIANT_ALSO_NEGOTIATES- See Also:
-
STATUS_LOOP_DETECTED
public static final int STATUS_LOOP_DETECTED- See Also:
-
STATUS_NOT_EXTENDED
public static final int STATUS_NOT_EXTENDED- See Also:
-
STATUS_NETWORK_AUTHENTICATION_REQUIRED
public static final int STATUS_NETWORK_AUTHENTICATION_REQUIRED- See Also:
-
-
Method Details
-
getStatusName
Returns a user-friendly string representation for each status code defined in this class.- Parameters:
status
- The status code to get a string for- Returns:
- The string
-