Functional response builders allow for non-standard HTTP status codes

Issue: SPR-16366
This commit is contained in:
Juergen Hoeller
2018-01-14 17:45:58 +01:00
parent 91e39d558f
commit 9623cdec48
7 changed files with 137 additions and 81 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,6 +43,7 @@ import org.springframework.util.MultiValueMap;
* Base class for {@link ServerHttpResponse} implementations.
*
* @author Rossen Stoyanchev
* @author Juergen Hoeller
* @author Sebastien Deleuze
* @since 5.0
*/
@@ -112,7 +113,7 @@ public abstract class AbstractServerHttpResponse implements ServerHttpResponse {
* @param statusCode the HTTP status as an integer value
* @since 5.0.1
*/
public void setStatusCodeValue(Integer statusCode) {
public void setStatusCodeValue(@Nullable Integer statusCode) {
this.statusCode = statusCode;
}