diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpStatus.java b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpStatus.java index 7db1fa64ff0..881acbd679b 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpStatus.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpStatus.java @@ -29,10 +29,12 @@ package org.eclipse.jetty.http; *
302 Moved Temporarily
")100 Continue
*/
@@ -696,7 +709,7 @@ public class HttpStatus
/*
* --------------------------------------------------------------------
* Success messages in 2xx series. As defined by ... RFC 1945 - HTTP/1.0
- * RFC 2616 - HTTP/1.1 RFC 2518 - WebDAV
+ * RFC 7231 - HTTP/1.1 RFC 2518 - WebDAV
*/
/** 200 OK
*/
@@ -719,7 +732,7 @@ public class HttpStatus
/*
* --------------------------------------------------------------------
* Redirection messages in 3xx series. As defined by ... RFC 1945 -
- * HTTP/1.0 RFC 2616 - HTTP/1.1
+ * HTTP/1.0 RFC 7231 - HTTP/1.1
*/
/** 300 Mutliple Choices
*/
@@ -738,11 +751,13 @@ public class HttpStatus
USE_PROXY(USE_PROXY_305, "Use Proxy"),
/** 307 Temporary Redirect
*/
TEMPORARY_REDIRECT(TEMPORARY_REDIRECT_307, "Temporary Redirect"),
+ /** 308 Permanent Redirect
*/
+ PERMANET_REDIRECT(PERMANENT_REDIRECT_308, "Permanent Redirect"),
/*
* --------------------------------------------------------------------
* Client Error messages in 4xx series. As defined by ... RFC 1945 -
- * HTTP/1.0 RFC 2616 - HTTP/1.1 RFC 2518 - WebDAV
+ * HTTP/1.0 RFC 7231 - HTTP/1.1 RFC 2518 - WebDAV
*/
/** 400 Bad Request
*/
@@ -791,7 +806,7 @@ public class HttpStatus
/*
* --------------------------------------------------------------------
* Server Error messages in 5xx series. As defined by ... RFC 1945 -
- * HTTP/1.0 RFC 2616 - HTTP/1.1 RFC 2518 - WebDAV
+ * HTTP/1.0 RFC 7231 - HTTP/1.1 RFC 2518 - WebDAV
*/
/** 500 Server Error
*/
@@ -844,7 +859,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Informational
message category as defined in the RFC 1945 - HTTP/1.0,
- * and RFC 2616 -
+ * and RFC 7231 -
* HTTP/1.1.
*
* @return true if within range of codes that belongs to
@@ -859,7 +874,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Success
message category as defined in the RFC 1945 - HTTP/1.0,
- * and RFC 2616 -
+ * and RFC 7231 -
* HTTP/1.1.
*
* @return true if within range of codes that belongs to
@@ -874,7 +889,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Redirection
message category as defined in the RFC 1945 - HTTP/1.0,
- * and RFC 2616 -
+ * and RFC 7231 -
* HTTP/1.1.
*
* @return true if within range of codes that belongs to
@@ -889,7 +904,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Client Error
message category as defined in the RFC 1945 - HTTP/1.0,
- * and RFC 2616 -
+ * and RFC 7231 -
* HTTP/1.1.
*
* @return true if within range of codes that belongs to
@@ -904,7 +919,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Server Error
message category as defined in the RFC 1945 - HTTP/1.0,
- * and RFC 2616 -
+ * and RFC 7231 -
* HTTP/1.1.
*
* @return true if within range of codes that belongs to
@@ -958,7 +973,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Informational
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.
+ * href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1.
*
* @param code
* the code to test.
@@ -974,7 +989,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Success
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.
+ * href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1.
*
* @param code
* the code to test.
@@ -990,7 +1005,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Redirection
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.
+ * href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1.
*
* @param code
* the code to test.
@@ -1006,7 +1021,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Client Error
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.
+ * href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1.
*
* @param code
* the code to test.
@@ -1022,7 +1037,7 @@ public class HttpStatus
* Simple test against an code to determine if it falls into the
* Server Error
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 2616 - HTTP/1.1.
+ * href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1.
*
* @param code
* the code to test.