Class RestResponse.StatusCode

java.lang.Object
org.jboss.resteasy.reactive.RestResponse.StatusCode
Enclosing class:
RestResponse<T>

public static class RestResponse.StatusCode extends Object
Commonly used status codes defined by HTTP, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2">HTTP/1.1 documentation} for the complete list.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    202 Accepted, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.3">HTTP/1.1 documentation}.
    static final int
    502 Bad Gateway, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.3">HTTP/1.1 documentation}.
    static final int
    400 Bad Request, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">HTTP/1.1 documentation}.
    static final int
    409 Conflict, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.8">HTTP/1.1 documentation}.
    static final int
    100 Continue, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2.1">HTTP/1.1 documentation}.
    static final int
    201 Created, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.2">HTTP/1.1 documentation}.
    static final int
    417 Expectation Failed, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.14">HTTP/1.1 documentation}.
    static final int
    403 Forbidden, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.3">HTTP/1.1 documentation}.
    static final int
    302 Found, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.3">HTTP/1.1 documentation}.
    static final int
    504 Gateway Timeout, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.5">HTTP/1.1 documentation}.
    static final int
    410 Gone, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.9">HTTP/1.1 documentation}.
    static final int
    505 HTTP Version Not Supported, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.6">HTTP/1.1 documentation}.
    static final int
    500 Internal Server Error, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.1">HTTP/1.1 documentation}.
    static final int
    411 Length Required, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.10">HTTP/1.1 documentation}.
    static final int
    405 Method Not Allowed, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.5">HTTP/1.1 documentation}.
    static final int
    301 Moved Permanently, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.2">HTTP/1.1 documentation}.
    static final int
    300 Multiple Choices, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.1">HTTP/1.1 documentation}.
    static final int
    511 Network Authentication Required, see {@link <a href="https://tools.ietf.org/html/rfc6585#section-6">RFC 6585: Additional HTTP Status Codes}.
    static final int
    204 No Content, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">HTTP/1.1 documentation}.
    static final int
    203 Non-Authoritative Information, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.4">HTTP/1.1 documentation}.
    static final int
    406 Not Acceptable, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.6">HTTP/1.1 documentation}.
    static final int
    404 Not Found, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.4">HTTP/1.1 documentation}.
    static final int
    501 Not Implemented, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.2">HTTP/1.1 documentation}.
    static final int
    304 Not Modified, see {@link <a href="https://tools.ietf.org/html/rfc7232#section-4.1">HTTP/1.1 documentation}.
    static final int
    200 OK, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">HTTP/1.1 documentation}.
    static final int
    206 Reset Content, see {@link <a href="https://tools.ietf.org/html/rfc7233#section-4.1">HTTP/1.1 documentation}.
    static final int
    413 Payload Too Large, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.11">HTTP/1.1 documentation}.
    static final int
    402 Payment Required, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.2">HTTP/1.1 documentation}.
    static final int
    308 Permanent Redirect, see {@link <a href="https://tools.ietf.org/html/rfc7238#section-3">HTTP/1.1 documentation}.
    static final int
    412 Precondition Failed, see {@link <a href="https://tools.ietf.org/html/rfc7232#section-4.2">HTTP/1.1 documentation}.
    static final int
    428 Precondition required, see {@link <a href="https://tools.ietf.org/html/rfc6585#section-3">RFC 6585: Additional HTTP Status Codes}.
    static final int
    407 Proxy Authentication Required, see {@link <a href="https://tools.ietf.org/html/rfc7235#section-3.2">HTTP/1.1 documentation}.
    static final int
    431 Request Header Fields Too Large, see {@link <a href="https://tools.ietf.org/html/rfc6585#section-5">RFC 6585: Additional HTTP Status Codes}.
    static final int
    408 Request Timeout, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.7">HTTP/1.1 documentation}.
    static final int
    416 Requested Range Not Satisfiable, see {@link <a href="https://tools.ietf.org/html/rfc7233#section-4.4">HTTP/1.1 documentation}.
    static final int
    205 Reset Content, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">HTTP/1.1 documentation}.
    static final int
    303 See Other, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.4">HTTP/1.1 documentation}.
    static final int
    503 Service Unavailable, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.4">HTTP/1.1 documentation}.
    static final int
    101 Switching Protocols, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2.2">HTTP/1.1 documentation}.
    static final int
    307 Temporary Redirect, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.7">HTTP/1.1 documentation}.
    static final int
    429 Too Many Requests, see {@link <a href="https://tools.ietf.org/html/rfc6585#section-4">RFC 6585: Additional HTTP Status Codes}.
    static final int
    401 Unauthorized, see {@link <a href="https://tools.ietf.org/html/rfc7235#section-3.1">HTTP/1.1 documentation}.
    static final int
    415 Unsupported Media Type, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.13">HTTP/1.1 documentation}.
    static final int
    426 Upgrade Required, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.15">HTTP/1.1 documentation}.
    static final int
    414 URI Too Long, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.12">HTTP/1.1 documentation}.
    static final int
    305 Use Proxy, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.5">HTTP/1.1 documentation}.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CONTINUE

      public static final int CONTINUE
      100 Continue, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2.1">HTTP/1.1 documentation}.
      See Also:
    • SWITCHING_PROTOCOLS

      public static final int SWITCHING_PROTOCOLS
      101 Switching Protocols, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.2.2">HTTP/1.1 documentation}.
      See Also:
    • OK

      public static final int OK
      200 OK, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">HTTP/1.1 documentation}.
      See Also:
    • CREATED

      public static final int CREATED
      201 Created, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.2">HTTP/1.1 documentation}.
      See Also:
    • ACCEPTED

      public static final int ACCEPTED
      202 Accepted, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.3">HTTP/1.1 documentation}.
      See Also:
    • NON_AUTHORITATIVE_INFORMATION

      public static final int NON_AUTHORITATIVE_INFORMATION
      203 Non-Authoritative Information, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.4">HTTP/1.1 documentation}.
      See Also:
    • NO_CONTENT

      public static final int NO_CONTENT
      204 No Content, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">HTTP/1.1 documentation}.
      See Also:
    • RESET_CONTENT

      public static final int RESET_CONTENT
      205 Reset Content, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.3.5">HTTP/1.1 documentation}.
      See Also:
    • PARTIAL_CONTENT

      public static final int PARTIAL_CONTENT
      206 Reset Content, see {@link <a href="https://tools.ietf.org/html/rfc7233#section-4.1">HTTP/1.1 documentation}.
      See Also:
    • MULTIPLE_CHOICES

      public static final int MULTIPLE_CHOICES
      300 Multiple Choices, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.1">HTTP/1.1 documentation}.
      See Also:
    • MOVED_PERMANENTLY

      public static final int MOVED_PERMANENTLY
      301 Moved Permanently, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.2">HTTP/1.1 documentation}.
      See Also:
    • FOUND

      public static final int FOUND
      302 Found, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.3">HTTP/1.1 documentation}.
      See Also:
    • SEE_OTHER

      public static final int SEE_OTHER
      303 See Other, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.4">HTTP/1.1 documentation}.
      See Also:
    • NOT_MODIFIED

      public static final int NOT_MODIFIED
      304 Not Modified, see {@link <a href="https://tools.ietf.org/html/rfc7232#section-4.1">HTTP/1.1 documentation}.
      See Also:
    • USE_PROXY

      public static final int USE_PROXY
      305 Use Proxy, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.5">HTTP/1.1 documentation}.
      See Also:
    • TEMPORARY_REDIRECT

      public static final int TEMPORARY_REDIRECT
      307 Temporary Redirect, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.4.7">HTTP/1.1 documentation}.
      See Also:
    • PERMANENT_REDIRECT

      public static final int PERMANENT_REDIRECT
      308 Permanent Redirect, see {@link <a href="https://tools.ietf.org/html/rfc7238#section-3">HTTP/1.1 documentation}.
      See Also:
    • BAD_REQUEST

      public static final int BAD_REQUEST
      400 Bad Request, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">HTTP/1.1 documentation}.
      See Also:
    • UNAUTHORIZED

      public static final int UNAUTHORIZED
      401 Unauthorized, see {@link <a href="https://tools.ietf.org/html/rfc7235#section-3.1">HTTP/1.1 documentation}.
      See Also:
    • PAYMENT_REQUIRED

      public static final int PAYMENT_REQUIRED
      402 Payment Required, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.2">HTTP/1.1 documentation}.
      See Also:
    • FORBIDDEN

      public static final int FORBIDDEN
      403 Forbidden, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.3">HTTP/1.1 documentation}.
      See Also:
    • NOT_FOUND

      public static final int NOT_FOUND
      404 Not Found, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.4">HTTP/1.1 documentation}.
      See Also:
    • METHOD_NOT_ALLOWED

      public static final int METHOD_NOT_ALLOWED
      405 Method Not Allowed, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.5">HTTP/1.1 documentation}.
      See Also:
    • NOT_ACCEPTABLE

      public static final int NOT_ACCEPTABLE
      406 Not Acceptable, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.6">HTTP/1.1 documentation}.
      See Also:
    • PROXY_AUTHENTICATION_REQUIRED

      public static final int PROXY_AUTHENTICATION_REQUIRED
      407 Proxy Authentication Required, see {@link <a href="https://tools.ietf.org/html/rfc7235#section-3.2">HTTP/1.1 documentation}.
      See Also:
    • REQUEST_TIMEOUT

      public static final int REQUEST_TIMEOUT
      408 Request Timeout, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.7">HTTP/1.1 documentation}.
      See Also:
    • CONFLICT

      public static final int CONFLICT
      409 Conflict, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.8">HTTP/1.1 documentation}.
      See Also:
    • GONE

      public static final int GONE
      410 Gone, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.9">HTTP/1.1 documentation}.
      See Also:
    • LENGTH_REQUIRED

      public static final int LENGTH_REQUIRED
      411 Length Required, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.10">HTTP/1.1 documentation}.
      See Also:
    • PRECONDITION_FAILED

      public static final int PRECONDITION_FAILED
      412 Precondition Failed, see {@link <a href="https://tools.ietf.org/html/rfc7232#section-4.2">HTTP/1.1 documentation}.
      See Also:
    • PAYLOAD_TOO_LARGE

      public static final int PAYLOAD_TOO_LARGE
      413 Payload Too Large, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.11">HTTP/1.1 documentation}.
      See Also:
    • URI_TOO_LONG

      public static final int URI_TOO_LONG
      414 URI Too Long, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.12">HTTP/1.1 documentation}.
      See Also:
    • UNSUPPORTED_MEDIA_TYPE

      public static final int UNSUPPORTED_MEDIA_TYPE
      415 Unsupported Media Type, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.13">HTTP/1.1 documentation}.
      See Also:
    • REQUESTED_RANGE_NOT_SATISFIABLE

      public static final int REQUESTED_RANGE_NOT_SATISFIABLE
      416 Requested Range Not Satisfiable, see {@link <a href="https://tools.ietf.org/html/rfc7233#section-4.4">HTTP/1.1 documentation}.
      See Also:
    • EXPECTATION_FAILED

      public static final int EXPECTATION_FAILED
      417 Expectation Failed, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.14">HTTP/1.1 documentation}.
      See Also:
    • UPGRADE_REQUIRED

      public static final int UPGRADE_REQUIRED
      426 Upgrade Required, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.5.15">HTTP/1.1 documentation}.
      See Also:
    • PRECONDITION_REQUIRED

      public static final int PRECONDITION_REQUIRED
      428 Precondition required, see {@link <a href="https://tools.ietf.org/html/rfc6585#section-3">RFC 6585: Additional HTTP Status Codes}.
      See Also:
    • TOO_MANY_REQUESTS

      public static final int TOO_MANY_REQUESTS
      429 Too Many Requests, see {@link <a href="https://tools.ietf.org/html/rfc6585#section-4">RFC 6585: Additional HTTP Status Codes}.
      See Also:
    • REQUEST_HEADER_FIELDS_TOO_LARGE

      public static final int REQUEST_HEADER_FIELDS_TOO_LARGE
      431 Request Header Fields Too Large, see {@link <a href="https://tools.ietf.org/html/rfc6585#section-5">RFC 6585: Additional HTTP Status Codes}.
      See Also:
    • INTERNAL_SERVER_ERROR

      public static final int INTERNAL_SERVER_ERROR
      500 Internal Server Error, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.1">HTTP/1.1 documentation}.
      See Also:
    • NOT_IMPLEMENTED

      public static final int NOT_IMPLEMENTED
      501 Not Implemented, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.2">HTTP/1.1 documentation}.
      See Also:
    • BAD_GATEWAY

      public static final int BAD_GATEWAY
      502 Bad Gateway, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.3">HTTP/1.1 documentation}.
      See Also:
    • SERVICE_UNAVAILABLE

      public static final int SERVICE_UNAVAILABLE
      503 Service Unavailable, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.4">HTTP/1.1 documentation}.
      See Also:
    • GATEWAY_TIMEOUT

      public static final int GATEWAY_TIMEOUT
      504 Gateway Timeout, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.5">HTTP/1.1 documentation}.
      See Also:
    • HTTP_VERSION_NOT_SUPPORTED

      public static final int HTTP_VERSION_NOT_SUPPORTED
      505 HTTP Version Not Supported, see {@link <a href="https://tools.ietf.org/html/rfc7231#section-6.6.6">HTTP/1.1 documentation}.
      See Also:
    • NETWORK_AUTHENTICATION_REQUIRED

      public static final int NETWORK_AUTHENTICATION_REQUIRED
      511 Network Authentication Required, see {@link <a href="https://tools.ietf.org/html/rfc6585#section-6">RFC 6585: Additional HTTP Status Codes}.
      See Also:
  • Constructor Details

    • StatusCode

      public StatusCode()