Package org.jboss.resteasy.reactive
Enum Class RestResponse.Status
- All Implemented Interfaces:
jakarta.ws.rs.core.Response.StatusType,Serializable,Comparable<RestResponse.Status>,Constable
- Enclosing class:
RestResponse<T>
public static enum RestResponse.Status
extends Enum<RestResponse.Status>
implements jakarta.ws.rs.core.Response.StatusType
Commonly used status codes defined by HTTP, see
documentation}
for the complete list. Additional status codes can be added by applications
by creating an implementation of
invalid @link
{@link <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10">HTTP/1.1
Response.StatusType.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription202 Accepted, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.3">HTTP/1.1502 Bad Gateway, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.3">HTTP/1.1400 Bad Request, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">HTTP/1.1409 Conflict, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.8">HTTP/1.1100 Continue, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2.1">HTTP/1.1201 Created, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.2">HTTP/1.1417 Expectation Failed, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.14">HTTP/1.1403 Forbidden, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.3">HTTP/1.1302 Found, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.3">HTTP/1.1504 Gateway Timeout, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.5">HTTP/1.1410 Gone, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.9">HTTP/1.1505 HTTP Version Not Supported, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.6">HTTP/1.1500 Internal Server Error, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.1">HTTP/1.1411 Length Required, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.10">HTTP/1.1405 Method Not Allowed, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.5">HTTP/1.1301 Moved Permanently, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.2">HTTP/1.1300 Multiple Choices, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.1">HTTP/1.1511 Network Authentication Required, see6585: Additional HTTP Status Codes}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc6585#section-6">RFC204 No Content, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">HTTP/1.1203 Non-Authoritative Information, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.4">HTTP/1.1406 Not Acceptable, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.6">HTTP/1.1404 Not Found, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.4">HTTP/1.1501 Not Implemented, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.2">HTTP/1.1304 Not Modified, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7232#section-4.1">HTTP/1.1200 OK, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">HTTP/1.1206 Reset Content, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7233#section-4.1">HTTP/1.1413 Payload Too Large, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.11">HTTP/1.1402 Payment Required, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.2">HTTP/1.1308 Permanent Redirect, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7238#section-3">HTTP/1.1412 Precondition Failed, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7232#section-4.2">HTTP/1.1428 Precondition required, see6585: Additional HTTP Status Codes}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc6585#section-3">RFC407 Proxy Authentication Required, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7235#section-3.2">HTTP/1.1431 Request Header Fields Too Large, see6585: Additional HTTP Status Codes}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc6585#section-5">RFC408 Request Timeout, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.7">HTTP/1.1416 Requested Range Not Satisfiable, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7233#section-4.4">HTTP/1.1205 Reset Content, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">HTTP/1.1303 See Other, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.4">HTTP/1.1503 Service Unavailable, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.4">HTTP/1.1101 Switching Protocols, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2.2">HTTP/1.1307 Temporary Redirect, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.7">HTTP/1.1429 Too Many Requests, see6585: Additional HTTP Status Codes}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc6585#section-4">RFC401 Unauthorized, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7235#section-3.1">HTTP/1.1415 Unsupported Media Type, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.13">HTTP/1.1426 Upgrade Required, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.15">HTTP/1.1414 URI Too Long, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.12">HTTP/1.1305 Use Proxy, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.5">HTTP/1.1 -
Method Summary
Modifier and TypeMethodDescriptionstatic RestResponse.StatusfromStatusCode(int statusCode) Convert a numerical status code into the corresponding Status.jakarta.ws.rs.core.Response.Status.FamilyGet the class of status code.Get the reason phrase.intGet the associated status code.toString()Get the reason phrase.static RestResponse.StatusReturns the enum constant of this class with the specified name.static RestResponse.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface jakarta.ws.rs.core.Response.StatusType
toEnum
-
Enum Constant Details
-
CONTINUE
100 Continue, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2.1">HTTP/1.1 -
SWITCHING_PROTOCOLS
101 Switching Protocols, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2.2">HTTP/1.1 -
OK
200 OK, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">HTTP/1.1 -
CREATED
201 Created, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.2">HTTP/1.1 -
ACCEPTED
202 Accepted, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.3">HTTP/1.1 -
NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.4">HTTP/1.1 -
NO_CONTENT
204 No Content, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">HTTP/1.1 -
RESET_CONTENT
205 Reset Content, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">HTTP/1.1 -
PARTIAL_CONTENT
206 Reset Content, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7233#section-4.1">HTTP/1.1 -
MULTIPLE_CHOICES
300 Multiple Choices, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.1">HTTP/1.1 -
MOVED_PERMANENTLY
301 Moved Permanently, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.2">HTTP/1.1 -
FOUND
302 Found, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.3">HTTP/1.1 -
SEE_OTHER
303 See Other, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.4">HTTP/1.1 -
NOT_MODIFIED
304 Not Modified, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7232#section-4.1">HTTP/1.1 -
USE_PROXY
305 Use Proxy, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.5">HTTP/1.1 -
TEMPORARY_REDIRECT
307 Temporary Redirect, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.7">HTTP/1.1 -
PERMANENT_REDIRECT
308 Permanent Redirect, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7238#section-3">HTTP/1.1 -
BAD_REQUEST
400 Bad Request, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">HTTP/1.1 -
UNAUTHORIZED
401 Unauthorized, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7235#section-3.1">HTTP/1.1 -
PAYMENT_REQUIRED
402 Payment Required, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.2">HTTP/1.1 -
FORBIDDEN
403 Forbidden, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.3">HTTP/1.1 -
NOT_FOUND
404 Not Found, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.4">HTTP/1.1 -
METHOD_NOT_ALLOWED
405 Method Not Allowed, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.5">HTTP/1.1 -
NOT_ACCEPTABLE
406 Not Acceptable, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.6">HTTP/1.1 -
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7235#section-3.2">HTTP/1.1 -
REQUEST_TIMEOUT
408 Request Timeout, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.7">HTTP/1.1 -
CONFLICT
409 Conflict, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.8">HTTP/1.1 -
GONE
410 Gone, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.9">HTTP/1.1 -
LENGTH_REQUIRED
411 Length Required, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.10">HTTP/1.1 -
PRECONDITION_FAILED
412 Precondition Failed, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7232#section-4.2">HTTP/1.1 -
PAYLOAD_TOO_LARGE
413 Payload Too Large, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.11">HTTP/1.1 -
URI_TOO_LONG
414 URI Too Long, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.12">HTTP/1.1 -
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.13">HTTP/1.1 -
REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7233#section-4.4">HTTP/1.1 -
EXPECTATION_FAILED
417 Expectation Failed, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.14">HTTP/1.1 -
UPGRADE_REQUIRED
426 Upgrade Required, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.15">HTTP/1.1 -
PRECONDITION_REQUIRED
428 Precondition required, see6585: Additional HTTP Status Codes}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc6585#section-3">RFC -
TOO_MANY_REQUESTS
429 Too Many Requests, see6585: Additional HTTP Status Codes}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc6585#section-4">RFC -
REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large, see6585: Additional HTTP Status Codes}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc6585#section-5">RFC -
INTERNAL_SERVER_ERROR
500 Internal Server Error, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.1">HTTP/1.1 -
NOT_IMPLEMENTED
501 Not Implemented, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.2">HTTP/1.1 -
BAD_GATEWAY
502 Bad Gateway, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.3">HTTP/1.1 -
SERVICE_UNAVAILABLE
503 Service Unavailable, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.4">HTTP/1.1 -
GATEWAY_TIMEOUT
504 Gateway Timeout, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.5">HTTP/1.1 -
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported, seedocumentation}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.6">HTTP/1.1 -
NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required, see6585: Additional HTTP Status Codes}.invalid @link
{@link <a href="https://tools.ietf.org/html/rfc6585#section-6">RFC
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getFamily
public jakarta.ws.rs.core.Response.Status.Family getFamily()Get the class of status code.- Specified by:
getFamilyin interfacejakarta.ws.rs.core.Response.StatusType- Returns:
- the class of status code.
-
getStatusCode
public int getStatusCode()Get the associated status code.- Specified by:
getStatusCodein interfacejakarta.ws.rs.core.Response.StatusType- Returns:
- the status code.
-
getReasonPhrase
Get the reason phrase.- Specified by:
getReasonPhrasein interfacejakarta.ws.rs.core.Response.StatusType- Returns:
- the reason phrase.
-
toString
Get the reason phrase.- Overrides:
toStringin classEnum<RestResponse.Status>- Returns:
- the reason phrase.
-
fromStatusCode
Convert a numerical status code into the corresponding Status.- Parameters:
statusCode- the numerical status code.- Returns:
- the matching Status or null is no matching Status is defined.
-