Rename HttpStatus 308 to Permanent Redirect
Issue: SPR-11854
This commit is contained in:
@@ -317,9 +317,9 @@ public class StatusResultMatchers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assert the response status code is {@code HttpStatus.RESUME_INCOMPLETE} (308).
|
* Assert the response status code is {@code HttpStatus.PERMANENT_REDIRECT} (308).
|
||||||
*/
|
*/
|
||||||
public ResultMatcher isResumeIncomplete() {
|
public ResultMatcher isPermanentRedirect() {
|
||||||
return matcher(HttpStatus.valueOf(308));
|
return matcher(HttpStatus.valueOf(308));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -150,11 +150,10 @@ public enum HttpStatus {
|
|||||||
*/
|
*/
|
||||||
TEMPORARY_REDIRECT(307, "Temporary Redirect"),
|
TEMPORARY_REDIRECT(307, "Temporary Redirect"),
|
||||||
/**
|
/**
|
||||||
* {@code 308 Resume Incomplete}.
|
* {@code 308 Permanent Redirect}.
|
||||||
* @see <a href="http://code.google.com/p/gears/wiki/ResumableHttpRequestsProposal">A proposal for supporting
|
* @see <a href="http://tools.ietf.org/html/rfc7238">RFC 7238</a>
|
||||||
* resumable POST/PUT HTTP requests in HTTP/1.0</a>
|
|
||||||
*/
|
*/
|
||||||
RESUME_INCOMPLETE(308, "Resume Incomplete"),
|
PERMANENT_REDIRECT(308, "Permanent Redirect"),
|
||||||
|
|
||||||
// --- 4xx Client Error ---
|
// --- 4xx Client Error ---
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class HttpStatusTests {
|
|||||||
statusCodes.put(304, "NOT_MODIFIED");
|
statusCodes.put(304, "NOT_MODIFIED");
|
||||||
statusCodes.put(305, "USE_PROXY");
|
statusCodes.put(305, "USE_PROXY");
|
||||||
statusCodes.put(307, "TEMPORARY_REDIRECT");
|
statusCodes.put(307, "TEMPORARY_REDIRECT");
|
||||||
statusCodes.put(308, "RESUME_INCOMPLETE");
|
statusCodes.put(308, "PERMANENT_REDIRECT");
|
||||||
|
|
||||||
statusCodes.put(400, "BAD_REQUEST");
|
statusCodes.put(400, "BAD_REQUEST");
|
||||||
statusCodes.put(401, "UNAUTHORIZED");
|
statusCodes.put(401, "UNAUTHORIZED");
|
||||||
|
|||||||
Reference in New Issue
Block a user