diff options
author | Simone Bordet | 2016-02-04 11:10:10 +0000 |
---|---|---|
committer | Simone Bordet | 2016-02-05 17:12:37 +0000 |
commit | 460c778ca110798daf21ac35a3318ada99f8f50a (patch) | |
tree | 3d945f4edda7ef0e913847145ca8f77692719e05 | |
parent | 7b5d12b3382d2dd50cdb690fd87af7df2f4aa7d2 (diff) | |
download | org.eclipse.jetty.project-460c778ca110798daf21ac35a3318ada99f8f50a.tar.gz org.eclipse.jetty.project-460c778ca110798daf21ac35a3318ada99f8f50a.tar.xz org.eclipse.jetty.project-460c778ca110798daf21ac35a3318ada99f8f50a.zip |
Added Javadocs.
-rw-r--r-- | jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/ErrorCode.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/ErrorCode.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/ErrorCode.java index e5a69b15c4..7022c37d7c 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/ErrorCode.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/ErrorCode.java @@ -21,21 +21,66 @@ package org.eclipse.jetty.http2; import java.util.HashMap; import java.util.Map; +/** + * Standard HTTP/2 error codes. + */ public enum ErrorCode { + /** + * Indicates no errors. + */ NO_ERROR(0), + /** + * Indicates a generic HTTP/2 protocol violation. + */ PROTOCOL_ERROR(1), + /** + * Indicates an internal error. + */ INTERNAL_ERROR(2), + /** + * Indicates a HTTP/2 flow control violation. + */ FLOW_CONTROL_ERROR(3), + /** + * Indicates that a SETTINGS frame did not receive a reply in a timely manner. + */ SETTINGS_TIMEOUT_ERROR(4), + /** + * Indicates that a stream frame has been received after the stream was closed. + */ STREAM_CLOSED_ERROR(5), + /** + * Indicates that a frame has an invalid length. + */ FRAME_SIZE_ERROR(6), + /** + * Indicates that a stream was rejected before application processing. + */ REFUSED_STREAM_ERROR(7), + /** + * Indicates that a stream is no longer needed. + */ CANCEL_STREAM_ERROR(8), + /** + * Indicates inability to maintain the HPACK compression context. + */ COMPRESSION_ERROR(9), + /** + * Indicates that the connection established by a HTTP CONNECT was abnormally closed. + */ HTTP_CONNECT_ERROR(10), + /** + * Indicates that the other peer might be generating excessive load. + */ ENHANCE_YOUR_CALM_ERROR(11), + /** + * Indicates that the transport properties do not meet minimum security requirements. + */ INADEQUATE_SECURITY_ERROR(12), + /** + * Indicates that HTTP/1.1 must be used rather than HTTP/2. + */ HTTP_1_1_REQUIRED_ERROR(13); public final int code; |