Uses of Class
org.springframework.http.HttpStatus
Packages that use HttpStatus Package Description org.springframework.http Contains a basic abstraction over client/server-side HTTP.org.springframework.http.client Contains an abstraction over client-side HTTP.org.springframework.http.client.reactive Abstractions for reactive HTTP client support includingClientHttpRequest
andClientHttpResponse
as well as aClientHttpConnector
.org.springframework.http.server Contains an abstraction over server-side HTTP.org.springframework.http.server.reactive Abstractions for reactive HTTP server support including aServerHttpRequest
andServerHttpResponse
along with anHttpHandler
for processing.org.springframework.mock.http.client Mock implementations of client-side HTTP abstractions.org.springframework.mock.http.client.reactive Mock implementations of reactive HTTP client contracts.org.springframework.test.web.client.response Contains built-inResponseCreator
implementations.org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.web.bind.annotation Annotations for binding requests to controllers and handler methods as well as for binding request parameters to method arguments.org.springframework.web.client Core package of the client-side web support.org.springframework.web.filter Provides generic filter base classes allowing for bean-style configuration.org.springframework.web.method Common infrastructure for handler method processing, as used by Spring MVC'sorg.springframework.web.servlet.mvc.method
package.org.springframework.web.method.support Generic support classes for handler method processing.org.springframework.web.reactive.function.client Provides a reactiveWebClient
that builds on top of theorg.springframework.http.client.reactive
reactive HTTP adapter layer.org.springframework.web.reactive.function.client.support Classes supporting theorg.springframework.web.reactive.function.client
package.org.springframework.web.reactive.function.server Provides the types that make up Spring's functional web framework for Reactive environments.org.springframework.web.reactive.handler Provides HandlerMapping implementations including abstract base classes.org.springframework.web.reactive.result.view Support for result handling through view resolution.org.springframework.web.server Core interfaces and classes for Spring's generic, reactive web support.org.springframework.web.server.handler Provides common WebHandler implementations and aWebHandlerDecorator
.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.function Provides the types that make up Spring's functional web framework for Servlet environments.org.springframework.web.servlet.mvc Standard controller implementations for the Servlet MVC framework that comes with Spring.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.view Provides standard View and ViewResolver implementations, including abstract base classes for custom implementations.org.springframework.web.socket.sockjs.transport.handler TransportHandler
implementation classes as well as a concreteSockJsService
.Uses of HttpStatus in org.springframework.http
Methods in org.springframework.http that return HttpStatus Modifier and Type Method Description HttpStatus
ResponseEntity. getStatusCode()
Return the HTTP status code of the response.static HttpStatus
HttpStatus. resolve(int statusCode)
Resolve the given status code to anHttpStatus
, if possible.static HttpStatus
HttpStatus. valueOf(int statusCode)
Return the enum constant of this type with the specified numeric value.static HttpStatus
HttpStatus. valueOf(String name)
Returns the enum constant of this type with the specified name.static HttpStatus[]
HttpStatus. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.springframework.http with parameters of type HttpStatus Modifier and Type Method Description static ResponseEntity.BodyBuilder
ResponseEntity. status(HttpStatus status)
Create a builder with the given status.static HttpStatus.Series
HttpStatus.Series. valueOf(HttpStatus status)
Return the enum constant of this type with the corresponding series.Constructors in org.springframework.http with parameters of type HttpStatus Constructor Description ResponseEntity(HttpStatus status)
Create a newResponseEntity
with the given status code, and no body nor headers.ResponseEntity(MultiValueMap<String,String> headers, HttpStatus status)
Create a newHttpEntity
with the given headers and status code, and no body.ResponseEntity(T body, HttpStatus status)
Create a newResponseEntity
with the given body and status code, and no headers.ResponseEntity(T body, MultiValueMap<String,String> headers, HttpStatus status)
Create a newHttpEntity
with the given body, headers, and status code.Uses of HttpStatus in org.springframework.http.client
Methods in org.springframework.http.client that return HttpStatus Modifier and Type Method Description HttpStatus
AbstractClientHttpResponse. getStatusCode()
HttpStatus
ClientHttpResponse. getStatusCode()
Get the HTTP status code as anHttpStatus
enum value.Uses of HttpStatus in org.springframework.http.client.reactive
Methods in org.springframework.http.client.reactive that return HttpStatus Modifier and Type Method Description HttpStatus
ClientHttpResponse. getStatusCode()
Return the HTTP status code as anHttpStatus
enum value.HttpStatus
ClientHttpResponseDecorator. getStatusCode()
Uses of HttpStatus in org.springframework.http.server
Methods in org.springframework.http.server with parameters of type HttpStatus Modifier and Type Method Description void
ServerHttpResponse. setStatusCode(HttpStatus status)
Set the HTTP status code of the response.void
ServletServerHttpResponse. setStatusCode(HttpStatus status)
Uses of HttpStatus in org.springframework.http.server.reactive
Methods in org.springframework.http.server.reactive that return HttpStatus Modifier and Type Method Description HttpStatus
AbstractServerHttpResponse. getStatusCode()
HttpStatus
ServerHttpResponse. getStatusCode()
Return the status code that has been set, or otherwise fall back on the status of the response from the underlying server.HttpStatus
ServerHttpResponseDecorator. getStatusCode()
Methods in org.springframework.http.server.reactive with parameters of type HttpStatus Modifier and Type Method Description boolean
AbstractServerHttpResponse. setStatusCode(HttpStatus status)
boolean
ServerHttpResponse. setStatusCode(HttpStatus status)
Set the HTTP status code of the response.boolean
ServerHttpResponseDecorator. setStatusCode(HttpStatus status)
Uses of HttpStatus in org.springframework.mock.http.client
Methods in org.springframework.mock.http.client that return HttpStatus Modifier and Type Method Description HttpStatus
MockClientHttpResponse. getStatusCode()
Constructors in org.springframework.mock.http.client with parameters of type HttpStatus Constructor Description MockClientHttpResponse(byte[] body, HttpStatus statusCode)
Constructor with response body as a byte array.MockClientHttpResponse(InputStream body, HttpStatus statusCode)
Constructor with response body as InputStream.Uses of HttpStatus in org.springframework.mock.http.client.reactive
Methods in org.springframework.mock.http.client.reactive that return HttpStatus Modifier and Type Method Description HttpStatus
MockClientHttpResponse. getStatusCode()
Constructors in org.springframework.mock.http.client.reactive with parameters of type HttpStatus Constructor Description MockClientHttpResponse(HttpStatus status)
Uses of HttpStatus in org.springframework.test.web.client.response
Methods in org.springframework.test.web.client.response with parameters of type HttpStatus Modifier and Type Method Description static DefaultResponseCreator
MockRestResponseCreators. withStatus(HttpStatus status)
ResponseCreator
with a specific HTTP status.Constructors in org.springframework.test.web.client.response with parameters of type HttpStatus Constructor Description DefaultResponseCreator(HttpStatus statusCode)
Protected constructor.Uses of HttpStatus in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server that return HttpStatus Modifier and Type Method Description HttpStatus
ExchangeResult. getStatus()
Return the HTTP status code as anHttpStatus
enum value.Methods in org.springframework.test.web.reactive.server with parameters of type HttpStatus Modifier and Type Method Description WebTestClient.ResponseSpec
StatusAssertions. isEqualTo(HttpStatus status)
Assert the response status as anHttpStatus
.Uses of HttpStatus in org.springframework.web.bind.annotation
Methods in org.springframework.web.bind.annotation that return HttpStatus Modifier and Type Method Description HttpStatus
code()
The status code to use for the response.HttpStatus
value()
Alias forResponseStatus.code()
.Uses of HttpStatus in org.springframework.web.client
Methods in org.springframework.web.client that return HttpStatus Modifier and Type Method Description protected HttpStatus
DefaultResponseErrorHandler. getHttpStatusCode(ClientHttpResponse response)
Deprecated.as of 5.0, in favor ofDefaultResponseErrorHandler.handleError(ClientHttpResponse, HttpStatus)
HttpStatus
HttpStatusCodeException. getStatusCode()
Return the HTTP status code.Methods in org.springframework.web.client with parameters of type HttpStatus Modifier and Type Method Description static HttpClientErrorException
HttpClientErrorException. create(String message, HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Variant ofHttpClientErrorException.create(HttpStatus, String, HttpHeaders, byte[], Charset)
with an optional prepared message.static HttpClientErrorException
HttpClientErrorException. create(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
CreateHttpClientErrorException
or an HTTP status specific sub-class.static HttpServerErrorException
HttpServerErrorException. create(String message, HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Variant ofHttpServerErrorException.create(String, HttpStatus, String, HttpHeaders, byte[], Charset)
with an optional prepared message.static HttpServerErrorException
HttpServerErrorException. create(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Create anHttpServerErrorException
or an HTTP status specific sub-class.protected void
DefaultResponseErrorHandler. handleError(ClientHttpResponse response, HttpStatus statusCode)
Handle the error based on the resolved status code.void
ExtractingResponseErrorHandler. handleError(ClientHttpResponse response, HttpStatus statusCode)
protected boolean
DefaultResponseErrorHandler. hasError(HttpStatus statusCode)
Template method called fromDefaultResponseErrorHandler.hasError(ClientHttpResponse)
.protected boolean
ExtractingResponseErrorHandler. hasError(HttpStatus statusCode)
Method parameters in org.springframework.web.client with type arguments of type HttpStatus Modifier and Type Method Description void
ExtractingResponseErrorHandler. setStatusMapping(Map<HttpStatus,Class<? extends RestClientException>> statusMapping)
Set the mapping from HTTP status code toRestClientException
subclass.Constructors in org.springframework.web.client with parameters of type HttpStatus Constructor Description HttpClientErrorException(String message, HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset)
Constructor with a status code and status text, headers, and content, and an prepared message.HttpClientErrorException(HttpStatus statusCode)
Constructor with a status code only.HttpClientErrorException(HttpStatus statusCode, String statusText)
Constructor with a status code and status text.HttpClientErrorException(HttpStatus statusCode, String statusText, byte[] body, Charset responseCharset)
Constructor with a status code and status text, and content.HttpClientErrorException(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset)
Constructor with a status code and status text, headers, and content.HttpServerErrorException(String message, HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Constructor with a status code and status text, headers, content, and an prepared message.HttpServerErrorException(HttpStatus statusCode)
Constructor with a status code only.HttpServerErrorException(HttpStatus statusCode, String statusText)
Constructor with a status code and status text.HttpServerErrorException(HttpStatus statusCode, String statusText, byte[] body, Charset charset)
Constructor with a status code and status text, and content.HttpServerErrorException(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Constructor with a status code and status text, headers, and content.HttpStatusCodeException(String message, HttpStatus statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
Construct instance with anHttpStatus
, status text, content, and a response charset.HttpStatusCodeException(HttpStatus statusCode)
Construct a new instance with anHttpStatus
.HttpStatusCodeException(HttpStatus statusCode, String statusText)
Construct a new instance with anHttpStatus
and status text.HttpStatusCodeException(HttpStatus statusCode, String statusText, byte[] responseBody, Charset responseCharset)
Construct instance with anHttpStatus
, status text, and content.HttpStatusCodeException(HttpStatus statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
Construct instance with anHttpStatus
, status text, content, and a response charset.Uses of HttpStatus in org.springframework.web.filter
Methods in org.springframework.web.filter that return HttpStatus Modifier and Type Method Description HttpStatus
RelativeRedirectFilter. getRedirectStatus()
Return the configured redirect status.Methods in org.springframework.web.filter with parameters of type HttpStatus Modifier and Type Method Description void
RelativeRedirectFilter. setRedirectStatus(HttpStatus status)
Set the default HTTP Status to use for redirects.Uses of HttpStatus in org.springframework.web.method
Methods in org.springframework.web.method that return HttpStatus Modifier and Type Method Description protected HttpStatus
HandlerMethod. getResponseStatus()
Return the specified response status, if any.Uses of HttpStatus in org.springframework.web.method.support
Methods in org.springframework.web.method.support that return HttpStatus Modifier and Type Method Description HttpStatus
ModelAndViewContainer. getStatus()
Return the configured HTTP status, if any.Methods in org.springframework.web.method.support with parameters of type HttpStatus Modifier and Type Method Description void
ModelAndViewContainer. setStatus(HttpStatus status)
Provide an HTTP status that will be passed on to with theModelAndView
used for view rendering purposes.Uses of HttpStatus in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client that return HttpStatus Modifier and Type Method Description HttpStatus
WebClientResponseException. getStatusCode()
Return the HTTP status code value.HttpStatus
ClientResponse. statusCode()
Return the HTTP status code as anHttpStatus
enum value.Methods in org.springframework.web.reactive.function.client with parameters of type HttpStatus Modifier and Type Method Description static ClientResponse.Builder
ClientResponse. create(HttpStatus statusCode)
Create a response builder with the given status code and using default strategies for reading the body.static ClientResponse.Builder
ClientResponse. create(HttpStatus statusCode, List<HttpMessageReader<?>> messageReaders)
Create a response builder with the given status code and message body readers.static ClientResponse.Builder
ClientResponse. create(HttpStatus statusCode, ExchangeStrategies strategies)
Create a response builder with the given status code and strategies for reading the body.ClientResponse.Builder
ClientResponse.Builder. statusCode(HttpStatus statusCode)
Set the status code of the response.Method parameters in org.springframework.web.reactive.function.client with type arguments of type HttpStatus Modifier and Type Method Description WebClient.ResponseSpec
WebClient.ResponseSpec. onStatus(Predicate<HttpStatus> statusPredicate, Function<ClientResponse,reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction)
Provide a function to map specific error status codes to an error signal to be propagated downstream instead of the response.static ExchangeFilterFunction
ExchangeFilterFunctions. statusError(Predicate<HttpStatus> statusPredicate, Function<ClientResponse,? extends Throwable> exceptionFunction)
Return a filter that generates an error signal when the givenHttpStatus
predicate matches.Uses of HttpStatus in org.springframework.web.reactive.function.client.support
Methods in org.springframework.web.reactive.function.client.support that return HttpStatus Modifier and Type Method Description HttpStatus
ClientResponseWrapper. statusCode()
Uses of HttpStatus in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server that return HttpStatus Modifier and Type Method Description HttpStatus
ServerResponse. statusCode()
Return the status code of this response.Methods in org.springframework.web.reactive.function.server with parameters of type HttpStatus Modifier and Type Method Description EntityResponse.Builder<T>
EntityResponse.Builder. status(HttpStatus status)
Set the HTTP status.RenderingResponse.Builder
RenderingResponse.Builder. status(HttpStatus status)
Set the HTTP status.static ServerResponse.BodyBuilder
ServerResponse. status(HttpStatus status)
Create a builder with the given HTTP status.Uses of HttpStatus in org.springframework.web.reactive.handler
Methods in org.springframework.web.reactive.handler that return HttpStatus Modifier and Type Method Description protected HttpStatus
WebFluxResponseStatusExceptionHandler. determineStatus(Throwable ex)
Uses of HttpStatus in org.springframework.web.reactive.result.view
Methods in org.springframework.web.reactive.result.view that return HttpStatus Modifier and Type Method Description HttpStatus
RedirectView. getStatusCode()
Get the redirect status code to use.HttpStatus
Rendering. status()
Return the HTTP status to set the response to.Methods in org.springframework.web.reactive.result.view with parameters of type HttpStatus Modifier and Type Method Description void
RedirectView. setStatusCode(HttpStatus statusCode)
Set an alternate redirect status code such asTEMPORARY_REDIRECT
orPERMANENT_REDIRECT
.B
Rendering.Builder. status(HttpStatus status)
Specify the status to use for the response.Constructors in org.springframework.web.reactive.result.view with parameters of type HttpStatus Constructor Description RedirectView(String redirectUrl, HttpStatus statusCode)
Create a newRedirectView
with the given URL and an alternate redirect status code such asTEMPORARY_REDIRECT
orPERMANENT_REDIRECT
.Uses of HttpStatus in org.springframework.web.server
Methods in org.springframework.web.server that return HttpStatus Modifier and Type Method Description HttpStatus
ResponseStatusException. getStatus()
Return the HTTP status associated with this exception.Constructors in org.springframework.web.server with parameters of type HttpStatus Constructor Description ResponseStatusException(HttpStatus status)
Constructor with a response status.ResponseStatusException(HttpStatus status, String reason)
Constructor with a response status and a reason to add to the exception message as explanation.ResponseStatusException(HttpStatus status, String reason, Throwable cause)
Constructor with a response status and a reason to add to the exception message as explanation, as well as a nested exception.Uses of HttpStatus in org.springframework.web.server.handler
Methods in org.springframework.web.server.handler that return HttpStatus Modifier and Type Method Description protected HttpStatus
ResponseStatusExceptionHandler. determineStatus(Throwable ex)
Determine the HTTP status implied by the given exception.Uses of HttpStatus in org.springframework.web.servlet
Methods in org.springframework.web.servlet that return HttpStatus Modifier and Type Method Description HttpStatus
ModelAndView. getStatus()
Return the configured HTTP status for the response, if any.Methods in org.springframework.web.servlet with parameters of type HttpStatus Modifier and Type Method Description void
ModelAndView. setStatus(HttpStatus status)
Set the HTTP status to use for the response.Constructors in org.springframework.web.servlet with parameters of type HttpStatus Constructor Description ModelAndView(String viewName, Map<String,?> model, HttpStatus status)
Create a new ModelAndView given a view name, model, and HTTP status.ModelAndView(String viewName, HttpStatus status)
Create a new ModelAndView given a view name and HTTP status.Uses of HttpStatus in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation with parameters of type HttpStatus Modifier and Type Method Description void
ViewControllerRegistry. addStatusController(String urlPath, HttpStatus statusCode)
Map a simple controller to the given URL path (or pattern) in order to set the response status to the given code without rendering a body.RedirectViewControllerRegistration
RedirectViewControllerRegistration. setStatusCode(HttpStatus statusCode)
Set the specific redirect 3xx status code to use.ViewControllerRegistration
ViewControllerRegistration. setStatusCode(HttpStatus statusCode)
Set the status code to set on the response.Uses of HttpStatus in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function that return HttpStatus Modifier and Type Method Description HttpStatus
ServerResponse. statusCode()
Return the status code of this response.Methods in org.springframework.web.servlet.function with parameters of type HttpStatus Modifier and Type Method Description EntityResponse.Builder<T>
EntityResponse.Builder. status(HttpStatus status)
Set the HTTP status.RenderingResponse.Builder
RenderingResponse.Builder. status(HttpStatus status)
Set the HTTP status.static ServerResponse.BodyBuilder
ServerResponse. status(HttpStatus status)
Create a builder with the given HTTP status.Uses of HttpStatus in org.springframework.web.servlet.mvc
Methods in org.springframework.web.servlet.mvc that return HttpStatus Modifier and Type Method Description HttpStatus
ParameterizableViewController. getStatusCode()
Return the configured HTTP status code ornull
.Methods in org.springframework.web.servlet.mvc with parameters of type HttpStatus Modifier and Type Method Description void
ParameterizableViewController. setStatusCode(HttpStatus statusCode)
Configure the HTTP status code that this controller should set on the response.Uses of HttpStatus in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type HttpStatus Modifier and Type Method Description protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex, HttpHeaders headers, HttpStatus status, WebRequest webRequest)
Customize the response for AsyncRequestTimeoutException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleBindException(BindException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for BindException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleConversionNotSupported(ConversionNotSupportedException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for ConversionNotSupportedException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleExceptionInternal(Exception ex, Object body, HttpHeaders headers, HttpStatus status, WebRequest request)
A single place to customize the response body of all exception types.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMediaTypeNotAcceptableException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMediaTypeNotSupportedException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMessageNotReadableException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMessageNotWritableException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpRequestMethodNotSupportedException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for MethodArgumentNotValidException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleMissingPathVariable(MissingPathVariableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for MissingPathVariableException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleMissingServletRequestParameter(MissingServletRequestParameterException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for MissingServletRequestParameterException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleMissingServletRequestPart(MissingServletRequestPartException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for MissingServletRequestPartException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleNoHandlerFoundException(NoHandlerFoundException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for NoHandlerFoundException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleServletRequestBindingException(ServletRequestBindingException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for ServletRequestBindingException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleTypeMismatch(TypeMismatchException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for TypeMismatchException.Uses of HttpStatus in org.springframework.web.servlet.view
Methods in org.springframework.web.servlet.view that return HttpStatus Modifier and Type Method Description protected HttpStatus
RedirectView. getHttp11StatusCode(HttpServletRequest request, HttpServletResponse response, String targetUrl)
Determines the status code to use for HTTP 1.1 compatible requests.Methods in org.springframework.web.servlet.view with parameters of type HttpStatus Modifier and Type Method Description void
RedirectView. setStatusCode(HttpStatus statusCode)
Set the status code for this view.Uses of HttpStatus in org.springframework.web.socket.sockjs.transport.handler
Methods in org.springframework.web.socket.sockjs.transport.handler that return HttpStatus Modifier and Type Method Description protected abstract HttpStatus
AbstractHttpReceivingTransportHandler. getResponseStatus()
protected HttpStatus
XhrReceivingTransportHandler. getResponseStatus()