Functional response builders allow for non-standard HTTP status codes
Issue: SPR-16366
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user