java.lang.Object
java.lang.Enum<StatusCode>
net.jonathangiles.tools.teenyhttpd.model.StatusCode
All Implemented Interfaces:
Serializable, Comparable<StatusCode>, java.lang.constant.Constable

public enum StatusCode extends Enum<StatusCode>
  • Enum Constant Details

    • OK

      public static final StatusCode OK
    • CREATED

      public static final StatusCode CREATED
    • ACCEPTED

      public static final StatusCode ACCEPTED
    • NON_AUTHORITATIVE_INFORMATION

      public static final StatusCode NON_AUTHORITATIVE_INFORMATION
    • NO_CONTENT

      public static final StatusCode NO_CONTENT
    • RESET_CONTENT

      public static final StatusCode RESET_CONTENT
    • PARTIAL_CONTENT

      public static final StatusCode PARTIAL_CONTENT
    • MULTIPLE_CHOICES

      public static final StatusCode MULTIPLE_CHOICES
    • MOVED_PERMANENTLY

      public static final StatusCode MOVED_PERMANENTLY
    • FOUND

      public static final StatusCode FOUND
    • SEE_OTHER

      public static final StatusCode SEE_OTHER
    • NOT_MODIFIED

      public static final StatusCode NOT_MODIFIED
    • USE_PROXY

      public static final StatusCode USE_PROXY
    • TEMPORARY_REDIRECT

      public static final StatusCode TEMPORARY_REDIRECT
    • BAD_REQUEST

      public static final StatusCode BAD_REQUEST
    • UNAUTHORIZED

      public static final StatusCode UNAUTHORIZED
    • PAYMENT_REQUIRED

      public static final StatusCode PAYMENT_REQUIRED
    • FORBIDDEN

      public static final StatusCode FORBIDDEN
    • NOT_FOUND

      public static final StatusCode NOT_FOUND
    • METHOD_NOT_ALLOWED

      public static final StatusCode METHOD_NOT_ALLOWED
    • NOT_ACCEPTABLE

      public static final StatusCode NOT_ACCEPTABLE
    • PROXY_AUTHENTICATION_REQUIRED

      public static final StatusCode PROXY_AUTHENTICATION_REQUIRED
    • REQUEST_TIME_OUT

      public static final StatusCode REQUEST_TIME_OUT
    • CONFLICT

      public static final StatusCode CONFLICT
    • GONE

      public static final StatusCode GONE
    • LENGTH_REQUIRED

      public static final StatusCode LENGTH_REQUIRED
    • PRECONDITION_FAILED

      public static final StatusCode PRECONDITION_FAILED
    • REQUEST_ENTITY_TOO_LARGE

      public static final StatusCode REQUEST_ENTITY_TOO_LARGE
    • REQUEST_URI_TOO_LARGE

      public static final StatusCode REQUEST_URI_TOO_LARGE
    • UNSUPPORTED_MEDIA_TYPE

      public static final StatusCode UNSUPPORTED_MEDIA_TYPE
    • REQUESTED_RANGE_NOT_SATISFIABLE

      public static final StatusCode REQUESTED_RANGE_NOT_SATISFIABLE
    • EXPECTATION_FAILED

      public static final StatusCode EXPECTATION_FAILED
    • INTERNAL_SERVER_ERROR

      public static final StatusCode INTERNAL_SERVER_ERROR
    • NOT_IMPLEMENTED

      public static final StatusCode NOT_IMPLEMENTED
    • BAD_GATEWAY

      public static final StatusCode BAD_GATEWAY
    • SERVICE_UNAVAILABLE

      public static final StatusCode SERVICE_UNAVAILABLE
    • GATEWAY_TIME_OUT

      public static final StatusCode GATEWAY_TIME_OUT
    • HTTP_VERSION_NOT_SUPPORTED

      public static final StatusCode HTTP_VERSION_NOT_SUPPORTED
  • Method Details

    • values

      public static StatusCode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static StatusCode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<StatusCode>
    • getCode

      public int getCode()
    • getReasonPhrase

      public String getReasonPhrase()
    • asResponse

      public Response asResponse()
    • asTypedResponse

      public <T> TypedResponse<T> asTypedResponse()
    • asTypedResponse

      public <T> TypedResponse<T> asTypedResponse(T body)