Enum HttpStatusCode
- java.lang.Object
-
- java.lang.Enum<HttpStatusCode>
-
- com.azure.resourcemanager.recoveryservicesbackup.models.HttpStatusCode
-
- All Implemented Interfaces:
Serializable
,Comparable<HttpStatusCode>
public enum HttpStatusCode extends Enum<HttpStatusCode>
Defines values for HttpStatusCode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTED
Enum value Accepted.AMBIGUOUS
Enum value Ambiguous.BAD_GATEWAY
Enum value BadGateway.BAD_REQUEST
Enum value BadRequest.CONFLICT
Enum value Conflict.CONTINUE
Enum value Continue.CREATED
Enum value Created.EXPECTATION_FAILED
Enum value ExpectationFailed.FORBIDDEN
Enum value Forbidden.FOUND
Enum value Found.GATEWAY_TIMEOUT
Enum value GatewayTimeout.GONE
Enum value Gone.HTTP_VERSION_NOT_SUPPORTED
Enum value HttpVersionNotSupported.INTERNAL_SERVER_ERROR
Enum value InternalServerError.LENGTH_REQUIRED
Enum value LengthRequired.METHOD_NOT_ALLOWED
Enum value MethodNotAllowed.MOVED
Enum value Moved.MOVED_PERMANENTLY
Enum value MovedPermanently.MULTIPLE_CHOICES
Enum value MultipleChoices.NO_CONTENT
Enum value NoContent.NON_AUTHORITATIVE_INFORMATION
Enum value NonAuthoritativeInformation.NOT_ACCEPTABLE
Enum value NotAcceptable.NOT_FOUND
Enum value NotFound.NOT_IMPLEMENTED
Enum value NotImplemented.NOT_MODIFIED
Enum value NotModified.OK
Enum value OK.PARTIAL_CONTENT
Enum value PartialContent.PAYMENT_REQUIRED
Enum value PaymentRequired.PRECONDITION_FAILED
Enum value PreconditionFailed.PROXY_AUTHENTICATION_REQUIRED
Enum value ProxyAuthenticationRequired.REDIRECT
Enum value Redirect.REDIRECT_KEEP_VERB
Enum value RedirectKeepVerb.REDIRECT_METHOD
Enum value RedirectMethod.REQUEST_ENTITY_TOO_LARGE
Enum value RequestEntityTooLarge.REQUEST_TIMEOUT
Enum value RequestTimeout.REQUEST_URI_TOO_LONG
Enum value RequestUriTooLong.REQUESTED_RANGE_NOT_SATISFIABLE
Enum value RequestedRangeNotSatisfiable.RESET_CONTENT
Enum value ResetContent.SEE_OTHER
Enum value SeeOther.SERVICE_UNAVAILABLE
Enum value ServiceUnavailable.SWITCHING_PROTOCOLS
Enum value SwitchingProtocols.TEMPORARY_REDIRECT
Enum value TemporaryRedirect.UNAUTHORIZED
Enum value Unauthorized.UNSUPPORTED_MEDIA_TYPE
Enum value UnsupportedMediaType.UNUSED
Enum value Unused.UPGRADE_REQUIRED
Enum value UpgradeRequired.USE_PROXY
Enum value UseProxy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpStatusCode
fromString(String value)
Parses a serialized value to a HttpStatusCode instance.String
toString()
static HttpStatusCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static HttpStatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final HttpStatusCode CONTINUE
Enum value Continue.
-
SWITCHING_PROTOCOLS
public static final HttpStatusCode SWITCHING_PROTOCOLS
Enum value SwitchingProtocols.
-
OK
public static final HttpStatusCode OK
Enum value OK.
-
CREATED
public static final HttpStatusCode CREATED
Enum value Created.
-
ACCEPTED
public static final HttpStatusCode ACCEPTED
Enum value Accepted.
-
NON_AUTHORITATIVE_INFORMATION
public static final HttpStatusCode NON_AUTHORITATIVE_INFORMATION
Enum value NonAuthoritativeInformation.
-
NO_CONTENT
public static final HttpStatusCode NO_CONTENT
Enum value NoContent.
-
RESET_CONTENT
public static final HttpStatusCode RESET_CONTENT
Enum value ResetContent.
-
PARTIAL_CONTENT
public static final HttpStatusCode PARTIAL_CONTENT
Enum value PartialContent.
-
MULTIPLE_CHOICES
public static final HttpStatusCode MULTIPLE_CHOICES
Enum value MultipleChoices.
-
AMBIGUOUS
public static final HttpStatusCode AMBIGUOUS
Enum value Ambiguous.
-
MOVED_PERMANENTLY
public static final HttpStatusCode MOVED_PERMANENTLY
Enum value MovedPermanently.
-
MOVED
public static final HttpStatusCode MOVED
Enum value Moved.
-
FOUND
public static final HttpStatusCode FOUND
Enum value Found.
-
REDIRECT
public static final HttpStatusCode REDIRECT
Enum value Redirect.
-
SEE_OTHER
public static final HttpStatusCode SEE_OTHER
Enum value SeeOther.
-
REDIRECT_METHOD
public static final HttpStatusCode REDIRECT_METHOD
Enum value RedirectMethod.
-
NOT_MODIFIED
public static final HttpStatusCode NOT_MODIFIED
Enum value NotModified.
-
USE_PROXY
public static final HttpStatusCode USE_PROXY
Enum value UseProxy.
-
UNUSED
public static final HttpStatusCode UNUSED
Enum value Unused.
-
TEMPORARY_REDIRECT
public static final HttpStatusCode TEMPORARY_REDIRECT
Enum value TemporaryRedirect.
-
REDIRECT_KEEP_VERB
public static final HttpStatusCode REDIRECT_KEEP_VERB
Enum value RedirectKeepVerb.
-
BAD_REQUEST
public static final HttpStatusCode BAD_REQUEST
Enum value BadRequest.
-
UNAUTHORIZED
public static final HttpStatusCode UNAUTHORIZED
Enum value Unauthorized.
-
PAYMENT_REQUIRED
public static final HttpStatusCode PAYMENT_REQUIRED
Enum value PaymentRequired.
-
FORBIDDEN
public static final HttpStatusCode FORBIDDEN
Enum value Forbidden.
-
NOT_FOUND
public static final HttpStatusCode NOT_FOUND
Enum value NotFound.
-
METHOD_NOT_ALLOWED
public static final HttpStatusCode METHOD_NOT_ALLOWED
Enum value MethodNotAllowed.
-
NOT_ACCEPTABLE
public static final HttpStatusCode NOT_ACCEPTABLE
Enum value NotAcceptable.
-
PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatusCode PROXY_AUTHENTICATION_REQUIRED
Enum value ProxyAuthenticationRequired.
-
REQUEST_TIMEOUT
public static final HttpStatusCode REQUEST_TIMEOUT
Enum value RequestTimeout.
-
CONFLICT
public static final HttpStatusCode CONFLICT
Enum value Conflict.
-
GONE
public static final HttpStatusCode GONE
Enum value Gone.
-
LENGTH_REQUIRED
public static final HttpStatusCode LENGTH_REQUIRED
Enum value LengthRequired.
-
PRECONDITION_FAILED
public static final HttpStatusCode PRECONDITION_FAILED
Enum value PreconditionFailed.
-
REQUEST_ENTITY_TOO_LARGE
public static final HttpStatusCode REQUEST_ENTITY_TOO_LARGE
Enum value RequestEntityTooLarge.
-
REQUEST_URI_TOO_LONG
public static final HttpStatusCode REQUEST_URI_TOO_LONG
Enum value RequestUriTooLong.
-
UNSUPPORTED_MEDIA_TYPE
public static final HttpStatusCode UNSUPPORTED_MEDIA_TYPE
Enum value UnsupportedMediaType.
-
REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatusCode REQUESTED_RANGE_NOT_SATISFIABLE
Enum value RequestedRangeNotSatisfiable.
-
EXPECTATION_FAILED
public static final HttpStatusCode EXPECTATION_FAILED
Enum value ExpectationFailed.
-
UPGRADE_REQUIRED
public static final HttpStatusCode UPGRADE_REQUIRED
Enum value UpgradeRequired.
-
INTERNAL_SERVER_ERROR
public static final HttpStatusCode INTERNAL_SERVER_ERROR
Enum value InternalServerError.
-
NOT_IMPLEMENTED
public static final HttpStatusCode NOT_IMPLEMENTED
Enum value NotImplemented.
-
BAD_GATEWAY
public static final HttpStatusCode BAD_GATEWAY
Enum value BadGateway.
-
SERVICE_UNAVAILABLE
public static final HttpStatusCode SERVICE_UNAVAILABLE
Enum value ServiceUnavailable.
-
GATEWAY_TIMEOUT
public static final HttpStatusCode GATEWAY_TIMEOUT
Enum value GatewayTimeout.
-
HTTP_VERSION_NOT_SUPPORTED
public static final HttpStatusCode HTTP_VERSION_NOT_SUPPORTED
Enum value HttpVersionNotSupported.
-
-
Method Detail
-
values
public static HttpStatusCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpStatusCode c : HttpStatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpStatusCode 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 nameNullPointerException
- if the argument is null
-
fromString
public static HttpStatusCode fromString(String value)
Parses a serialized value to a HttpStatusCode instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed HttpStatusCode object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<HttpStatusCode>
-
-