public enum HttpResponseStatus extends Enum<HttpResponseStatus>
| Enum Constant and Description |
|---|
ACCEPTED |
BAD_REQUEST |
CREATED |
FORBIDDEN |
INTERNAL_SERVER_ERROR |
METHOD_NOT_ALLOWED |
MOVED_PERMANENTLY |
NO_CONTENT |
NOT_FOUND |
OK |
PROXY_AUTHENTICATION_REQUIRED |
SERVICE_UNAVAILABLE |
UNAUTHORIZED |
| Modifier and Type | Field and Description |
|---|---|
private int |
code |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static HttpResponseStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpResponseStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpResponseStatus OK
public static final HttpResponseStatus CREATED
public static final HttpResponseStatus ACCEPTED
public static final HttpResponseStatus NO_CONTENT
public static final HttpResponseStatus MOVED_PERMANENTLY
public static final HttpResponseStatus BAD_REQUEST
public static final HttpResponseStatus UNAUTHORIZED
public static final HttpResponseStatus FORBIDDEN
public static final HttpResponseStatus NOT_FOUND
public static final HttpResponseStatus METHOD_NOT_ALLOWED
public static final HttpResponseStatus PROXY_AUTHENTICATION_REQUIRED
public static final HttpResponseStatus INTERNAL_SERVER_ERROR
public static final HttpResponseStatus SERVICE_UNAVAILABLE
public static HttpResponseStatus[] values()
for (HttpResponseStatus c : HttpResponseStatus.values()) System.out.println(c);
public static HttpResponseStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
Copyright © 2023 Apache NiFi Project. All rights reserved.