Uses of Interface
org.springframework.http.HttpStatusCode
Packages that use HttpStatusCode
Package
Description
Contains a basic abstraction over client/server-side HTTP.
Contains an abstraction over client-side HTTP.
Abstractions for reactive HTTP client support including
ClientHttpRequest and
ClientHttpResponse as well as a
ClientHttpConnector.Contains an abstraction over server-side HTTP.
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing.Mock implementations of client-side HTTP abstractions.
Mock implementations of reactive HTTP client contracts.
Contains built-in
ResponseCreator
implementations.Support for testing Spring WebFlux server endpoints via
WebTestClient.Common, generic interfaces that define minimal boundary points
between Spring's web infrastructure and other framework modules.
Provides web-specific data binding functionality.
Core package of the client-side web support.
Support for asynchronous request processing.
Provides generic filter base classes allowing for bean-style configuration.
Common infrastructure for handler method processing, as used by
Spring MVC's
org.springframework.web.servlet.mvc.method package.Generic support classes for handler method processing.
Multipart resolution framework for handling file uploads.
Support classes for the multipart resolution framework.
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer.Classes supporting the
org.springframework.web.reactive.function.client package.Provides the types that make up Spring's functional web framework for Reactive environments.
Provides HandlerMapping implementations including abstract base classes.
Infrastructure for annotation-based handler method processing.
Support for result handling through view resolution.
Core interfaces and classes for Spring's generic, reactive web support.
Provides common WebHandler implementations and a
WebHandlerDecorator.Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
Annotation-based setup for Spring MVC.
Provides the types that make up Spring's functional web framework for Servlet environments.
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package.Support classes for serving static resources.
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
TransportHandler
implementation classes as well as a concrete
SockJsService.-
Uses of HttpStatusCode in org.springframework.http
Classes in org.springframework.http that implement HttpStatusCodeMethods in org.springframework.http that return HttpStatusCodeModifier and TypeMethodDescriptionResponseEntity.getStatusCode()Return the HTTP status code of the response.static HttpStatusCodeHttpStatusCode.valueOf(int code) Return anHttpStatusCodeobject for the given integer value.Methods in org.springframework.http with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionstatic ProblemDetailProblemDetail.forStatus(HttpStatusCode status) Create aProblemDetailinstance with the given status code.static ProblemDetailProblemDetail.forStatusAndDetail(HttpStatusCode status, String detail) Create aProblemDetailinstance with the given status and detail.default booleanHttpStatusCode.isSameCodeAs(HttpStatusCode other) Whether thisHttpStatusCodeshares the same integervalueas the other status code.static ResponseEntity.BodyBuilderResponseEntity.status(HttpStatusCode status) Create a builder with the given status.Constructors in org.springframework.http with parameters of type HttpStatusCodeModifierConstructorDescriptionResponseEntity(HttpStatusCode status) Create aResponseEntitywith a status code only.ResponseEntity(MultiValueMap<String, String> headers, HttpStatusCode status) Create aResponseEntitywith headers and a status code.ResponseEntity(T body, HttpStatusCode status) Create aResponseEntitywith a body and status code.ResponseEntity(T body, MultiValueMap<String, String> headers, HttpStatusCode statusCode) Create aResponseEntitywith a body, headers, and a status code. -
Uses of HttpStatusCode in org.springframework.http.client
Methods in org.springframework.http.client that return HttpStatusCodeModifier and TypeMethodDescriptionAbstractClientHttpResponse.getStatusCode()Deprecated, for removal: This API element is subject to removal in a future version.ClientHttpResponse.getStatusCode()Get the HTTP status code as anHttpStatusCode. -
Uses of HttpStatusCode in org.springframework.http.client.reactive
Methods in org.springframework.http.client.reactive that return HttpStatusCodeModifier and TypeMethodDescriptionAbstractClientHttpResponse.getStatusCode()ClientHttpResponse.getStatusCode()Return the HTTP status code as anHttpStatusCode.ClientHttpResponseDecorator.getStatusCode()Constructors in org.springframework.http.client.reactive with parameters of type HttpStatusCodeModifierConstructorDescriptionprotectedAbstractClientHttpResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, ResponseCookie> cookies, reactor.core.publisher.Flux<DataBuffer> body) -
Uses of HttpStatusCode in org.springframework.http.server
Methods in org.springframework.http.server with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionvoidDelegatingServerHttpResponse.setStatusCode(HttpStatusCode status) voidServerHttpResponse.setStatusCode(HttpStatusCode status) Set the HTTP status code of the response.voidServletServerHttpResponse.setStatusCode(HttpStatusCode status) -
Uses of HttpStatusCode in org.springframework.http.server.reactive
Methods in org.springframework.http.server.reactive that return HttpStatusCodeModifier and TypeMethodDescriptionAbstractServerHttpResponse.getStatusCode()ServerHttpResponse.getStatusCode()Return the status code that has been set, or otherwise fall back on the status of the response from the underlying server.ServerHttpResponseDecorator.getStatusCode()Methods in org.springframework.http.server.reactive with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionbooleanAbstractServerHttpResponse.setStatusCode(HttpStatusCode status) booleanServerHttpResponse.setStatusCode(HttpStatusCode status) Set the HTTP status code of the response.booleanServerHttpResponseDecorator.setStatusCode(HttpStatusCode status) -
Uses of HttpStatusCode in org.springframework.mock.http.client
Methods in org.springframework.mock.http.client that return HttpStatusCodeConstructors in org.springframework.mock.http.client with parameters of type HttpStatusCodeModifierConstructorDescriptionMockClientHttpResponse(byte[] body, HttpStatusCode statusCode) Create aMockClientHttpResponsewith response body as a byte array and the supplied HTTP status code.MockClientHttpResponse(InputStream body, HttpStatusCode statusCode) Create aMockClientHttpResponsewith response body asInputStreamand the supplied HTTP status code. -
Uses of HttpStatusCode in org.springframework.mock.http.client.reactive
Methods in org.springframework.mock.http.client.reactive that return HttpStatusCodeConstructors in org.springframework.mock.http.client.reactive with parameters of type HttpStatusCode -
Uses of HttpStatusCode in org.springframework.test.web.client.response
Methods in org.springframework.test.web.client.response with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionstatic DefaultResponseCreatorMockRestResponseCreators.withStatus(HttpStatusCode status) ResponseCreatorwith a specific HTTP status.Constructors in org.springframework.test.web.client.response with parameters of type HttpStatusCodeModifierConstructorDescriptionprotectedDefaultResponseCreator(HttpStatusCode statusCode) Protected constructor. -
Uses of HttpStatusCode in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server that return HttpStatusCodeModifier and TypeMethodDescriptionExchangeResult.getStatus()Return the HTTP status code as anHttpStatusCodevalue.Methods in org.springframework.test.web.reactive.server with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionStatusAssertions.isEqualTo(HttpStatusCode status) Assert the response status as anHttpStatusCode. -
Uses of HttpStatusCode in org.springframework.web
Methods in org.springframework.web that return HttpStatusCodeModifier and TypeMethodDescriptionErrorResponse.getStatusCode()Return the HTTP status code to use for the response.ErrorResponseException.getStatusCode()HttpMediaTypeNotAcceptableException.getStatusCode()HttpMediaTypeNotSupportedException.getStatusCode()HttpRequestMethodNotSupportedException.getStatusCode()Methods in org.springframework.web with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionstatic ErrorResponse.BuilderErrorResponse.builder(Throwable ex, HttpStatusCode statusCode, String detail) Return a builder to create anErrorResponseinstance.static ErrorResponseErrorResponse.create(Throwable ex, HttpStatusCode statusCode, String detail) Static factory method to build an instance viaErrorResponse.builder(Throwable, HttpStatusCode, String).Constructors in org.springframework.web with parameters of type HttpStatusCodeModifierConstructorDescriptionErrorResponseException(HttpStatusCode status) Constructor with anHttpStatusCode.ErrorResponseException(HttpStatusCode status, Throwable cause) Constructor with anHttpStatusCodeand an optional cause.ErrorResponseException(HttpStatusCode status, ProblemDetail body, Throwable cause) Constructor with a givenProblemDetailinstance, possibly a subclass ofProblemDetailwith extended fields.ErrorResponseException(HttpStatusCode status, ProblemDetail body, Throwable cause, String messageDetailCode, Object[] messageDetailArguments) Constructor with a givenProblemDetail, and aMessageSourcecode and arguments to resolve the detail message with. -
Uses of HttpStatusCode in org.springframework.web.bind
Methods in org.springframework.web.bind that return HttpStatusCodeModifier and TypeMethodDescriptionMethodArgumentNotValidException.getStatusCode()MissingPathVariableException.getStatusCode()ServletRequestBindingException.getStatusCode() -
Uses of HttpStatusCode in org.springframework.web.client
Methods in org.springframework.web.client that return HttpStatusCodeModifier and TypeMethodDescriptionRestClientResponseException.getStatusCode()Return the HTTP status code.UnknownContentTypeException.getStatusCode()Return the HTTP status code value.Methods in org.springframework.web.client with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionstatic HttpClientErrorExceptionHttpClientErrorException.create(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Variant ofHttpClientErrorException.create(HttpStatusCode, String, HttpHeaders, byte[], Charset)with an optional prepared message.static HttpClientErrorExceptionHttpClientErrorException.create(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) CreateHttpClientErrorExceptionor an HTTP status specific subclass.static HttpServerErrorExceptionHttpServerErrorException.create(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Variant ofHttpServerErrorException.create(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)with an optional prepared message.static HttpServerErrorExceptionHttpServerErrorException.create(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Create anHttpServerErrorExceptionor an HTTP status specific subclass.protected voidDefaultResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode) Handle the error based on the resolved status code.voidExtractingResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode) protected booleanDefaultResponseErrorHandler.hasError(HttpStatusCode statusCode) Template method called fromDefaultResponseErrorHandler.hasError(ClientHttpResponse).protected booleanExtractingResponseErrorHandler.hasError(HttpStatusCode statusCode) Method parameters in org.springframework.web.client with type arguments of type HttpStatusCodeModifier and TypeMethodDescriptionRestClient.Builder.defaultStatusHandler(Predicate<HttpStatusCode> statusPredicate, RestClient.ResponseSpec.ErrorHandler errorHandler) Register a default status handler to apply to every response.RestClient.ResponseSpec.onStatus(Predicate<HttpStatusCode> statusPredicate, RestClient.ResponseSpec.ErrorHandler errorHandler) Provide a function to map specific error status codes to an error handler.voidExtractingResponseErrorHandler.setStatusMapping(Map<HttpStatusCode, Class<? extends RestClientException>> statusMapping) Set the mapping from HTTP status code toRestClientExceptionsubclass.Constructors in org.springframework.web.client with parameters of type HttpStatusCodeModifierConstructorDescriptionHttpClientErrorException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset) Constructor with a status code and status text, headers, and content, and a prepared message.HttpClientErrorException(HttpStatusCode statusCode) Constructor with a status code only.HttpClientErrorException(HttpStatusCode statusCode, String statusText) Constructor with a status code and status text.HttpClientErrorException(HttpStatusCode statusCode, String statusText, byte[] body, Charset responseCharset) Constructor with a status code and status text, and content.HttpClientErrorException(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset) Constructor with a status code and status text, headers, and content.HttpServerErrorException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Constructor with a status code and status text, headers, content, and a prepared message.HttpServerErrorException(HttpStatusCode statusCode) Constructor with a status code only.HttpServerErrorException(HttpStatusCode statusCode, String statusText) Constructor with a status code and status text.HttpServerErrorException(HttpStatusCode statusCode, String statusText, byte[] body, Charset charset) Constructor with a status code and status text, and content.HttpServerErrorException(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Constructor with a status code and status text, headers, and content.protectedHttpStatusCodeException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct instance with anHttpStatusCode, status text, content, and a response charset.protectedHttpStatusCodeException(HttpStatusCode statusCode) Construct a new instance with anHttpStatusCode.protectedHttpStatusCodeException(HttpStatusCode statusCode, String statusText) Construct a new instance with anHttpStatusCodeand status text.protectedHttpStatusCodeException(HttpStatusCode statusCode, String statusText, byte[] responseBody, Charset responseCharset) Construct instance with anHttpStatusCode, status text, and content.protectedHttpStatusCodeException(HttpStatusCode statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct instance with anHttpStatusCode, status text, content, and a response charset.RestClientResponseException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset responseCharset) Construct a new instance of with the given response data.UnknownContentTypeException(Type targetType, MediaType contentType, HttpStatusCode statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody) Construct a new instance of with the given response data. -
Uses of HttpStatusCode in org.springframework.web.context.request.async
Methods in org.springframework.web.context.request.async that return HttpStatusCode -
Uses of HttpStatusCode in org.springframework.web.filter
Methods in org.springframework.web.filter that return HttpStatusCodeModifier and TypeMethodDescriptionRelativeRedirectFilter.getRedirectStatus()Return the configured redirect status.Methods in org.springframework.web.filter with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionvoidRelativeRedirectFilter.setRedirectStatus(HttpStatusCode status) Set the default HTTP Status to use for redirects. -
Uses of HttpStatusCode in org.springframework.web.method
Methods in org.springframework.web.method that return HttpStatusCodeModifier and TypeMethodDescriptionprotected HttpStatusCodeHandlerMethod.getResponseStatus()Return the specified response status, if any. -
Uses of HttpStatusCode in org.springframework.web.method.support
Methods in org.springframework.web.method.support that return HttpStatusCodeModifier and TypeMethodDescriptionModelAndViewContainer.getStatus()Return the configured HTTP status, if any.Methods in org.springframework.web.method.support with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionvoidModelAndViewContainer.setStatus(HttpStatusCode status) Provide an HTTP status that will be passed on to with theModelAndViewused for view rendering purposes. -
Uses of HttpStatusCode in org.springframework.web.multipart
Methods in org.springframework.web.multipart that return HttpStatusCode -
Uses of HttpStatusCode in org.springframework.web.multipart.support
Methods in org.springframework.web.multipart.support that return HttpStatusCodeModifier and TypeMethodDescriptionMissingServletRequestPartException.getStatusCode()Return the HTTP status code to use for the response. -
Uses of HttpStatusCode in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client that return HttpStatusCodeModifier and TypeMethodDescriptionWebClientResponseException.getStatusCode()Return the HTTP status code value.ClientResponse.statusCode()Return the HTTP status code as anHttpStatusCodevalue.Methods in org.springframework.web.reactive.function.client with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionstatic ClientResponse.BuilderClientResponse.create(HttpStatusCode statusCode) Create a response builder with the given status code and using default strategies for reading the body.static ClientResponse.BuilderClientResponse.create(HttpStatusCode statusCode, List<HttpMessageReader<?>> messageReaders) Create a response builder with the given status code and message body readers.static ClientResponse.BuilderClientResponse.create(HttpStatusCode statusCode, ExchangeStrategies strategies) Create a response builder with the given status code and strategies for reading the body.static WebClientResponseExceptionWebClientResponseException.create(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) CreateWebClientResponseExceptionor an HTTP status specific subclass.ClientResponse.Builder.statusCode(HttpStatusCode statusCode) Set the status code of the response.Method parameters in org.springframework.web.reactive.function.client with type arguments of type HttpStatusCodeModifier and TypeMethodDescriptionWebClient.Builder.defaultStatusHandler(Predicate<HttpStatusCode> statusPredicate, Function<ClientResponse, reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction) Register a defaultstatus handlerto apply to every response.WebClient.ResponseSpec.onStatus(Predicate<HttpStatusCode> 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 ExchangeFilterFunctionExchangeFilterFunctions.statusError(Predicate<HttpStatusCode> statusPredicate, Function<ClientResponse, ? extends Throwable> exceptionFunction) Return a filter that generates an error signal when the givenHttpStatusCodepredicate matches.Constructors in org.springframework.web.reactive.function.client with parameters of type HttpStatusCodeModifierConstructorDescriptionUnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.WebClientResponseException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset charset, HttpRequest request) Constructor with a prepared message.WebClientResponseException(HttpStatusCode statusCode, String reasonPhrase, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) Constructor with response data only, and a default message. -
Uses of HttpStatusCode in org.springframework.web.reactive.function.client.support
Methods in org.springframework.web.reactive.function.client.support that return HttpStatusCode -
Uses of HttpStatusCode in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server that return HttpStatusCodeModifier and TypeMethodDescriptionServerResponse.statusCode()Return the status code of this response.Methods in org.springframework.web.reactive.function.server with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionEntityResponse.Builder.status(HttpStatusCode status) Set the HTTP status.RenderingResponse.Builder.status(HttpStatusCode status) Set the HTTP status.static ServerResponse.BodyBuilderServerResponse.status(HttpStatusCode status) Create a builder with the given HTTP status. -
Uses of HttpStatusCode in org.springframework.web.reactive.handler
Methods in org.springframework.web.reactive.handler that return HttpStatusCodeModifier and TypeMethodDescriptionprotected HttpStatusCodeWebFluxResponseStatusExceptionHandler.determineStatus(Throwable ex) -
Uses of HttpStatusCode in org.springframework.web.reactive.result.method.annotation
Methods in org.springframework.web.reactive.result.method.annotation with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionprotected ProblemDetailResponseEntityExceptionHandler.createProblemDetail(Exception ex, HttpStatusCode status, String defaultDetail, String detailMessageCode, Object[] detailMessageArguments, ServerWebExchange exchange) Convenience method to create aProblemDetailfor any exception that doesn't implementErrorResponse, also performing aMessageSourcelookup for the "detail" field.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.createResponseEntity(Object body, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Create theResponseEntityto use from the given body, headers, and statusCode.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleErrorResponseException(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling of anyErrorResponseException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleExceptionInternal(Exception ex, Object body, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Internal handler method that all others in this class delegate to, for common handling, and for the creation of aResponseEntity.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleHandlerMethodValidationException(HandlerMethodValidationException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofHandlerMethodValidationException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleMethodNotAllowedException(MethodNotAllowedException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofMethodNotAllowedException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleMissingRequestValueException(MissingRequestValueException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofMissingRequestValueException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleNotAcceptableStatusException(NotAcceptableStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofNotAcceptableStatusException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleResponseStatusException(ResponseStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling of anyResponseStatusException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleServerErrorException(ServerErrorException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofServerErrorException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleServerWebInputException(ServerWebInputException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofServerWebInputException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleUnsatisfiedRequestParameterException(UnsatisfiedRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofUnsatisfiedRequestParameterException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleUnsupportedMediaTypeStatusException(UnsupportedMediaTypeStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofUnsupportedMediaTypeStatusException.protected reactor.core.publisher.Mono<ResponseEntity<Object>>ResponseEntityExceptionHandler.handleWebExchangeBindException(WebExchangeBindException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofWebExchangeBindException. -
Uses of HttpStatusCode in org.springframework.web.reactive.result.view
Methods in org.springframework.web.reactive.result.view that return HttpStatusCodeModifier and TypeMethodDescriptionRedirectView.getStatusCode()Get the redirect status code to use.Rendering.status()Return the HTTP status to set the response to.Methods in org.springframework.web.reactive.result.view with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionvoidRedirectView.setStatusCode(HttpStatusCode statusCode) Set an alternate redirect status code such asHttpStatus.TEMPORARY_REDIRECTorHttpStatus.PERMANENT_REDIRECT.Rendering.Builder.status(HttpStatusCode status) Specify the status to use for the response.Constructors in org.springframework.web.reactive.result.view with parameters of type HttpStatusCodeModifierConstructorDescriptionRedirectView(String redirectUrl, HttpStatusCode statusCode) Create a newRedirectViewwith the given URL and an alternate redirect status code such asHttpStatus.TEMPORARY_REDIRECTorHttpStatus.PERMANENT_REDIRECT. -
Uses of HttpStatusCode in org.springframework.web.server
Constructors in org.springframework.web.server with parameters of type HttpStatusCodeModifierConstructorDescriptionConstructor with a response status.ResponseStatusException(HttpStatusCode status, String reason) Constructor with a response status and a reason to add to the exception message as explanation.ResponseStatusException(HttpStatusCode 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.protectedResponseStatusException(HttpStatusCode status, String reason, Throwable cause, String messageDetailCode, Object[] messageDetailArguments) Constructor with a message code and arguments for resolving the error "detail" viaMessageSource. -
Uses of HttpStatusCode in org.springframework.web.server.handler
Methods in org.springframework.web.server.handler that return HttpStatusCodeModifier and TypeMethodDescriptionprotected HttpStatusCodeResponseStatusExceptionHandler.determineStatus(Throwable ex) Determine the HTTP status for the given exception. -
Uses of HttpStatusCode in org.springframework.web.servlet
Methods in org.springframework.web.servlet that return HttpStatusCodeModifier and TypeMethodDescriptionModelAndView.getStatus()Return the configured HTTP status for the response, if any.NoHandlerFoundException.getStatusCode()Methods in org.springframework.web.servlet with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionvoidModelAndView.setStatus(HttpStatusCode status) Set the HTTP status to use for the response.Constructors in org.springframework.web.servlet with parameters of type HttpStatusCodeModifierConstructorDescriptionModelAndView(String viewName, Map<String, ?> model, HttpStatusCode status) Create a new ModelAndView given a view name, model, and HTTP status.ModelAndView(String viewName, HttpStatusCode status) Create a new ModelAndView given a view name and HTTP status. -
Uses of HttpStatusCode in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionvoidViewControllerRegistry.addStatusController(String urlPath, HttpStatusCode 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.setStatusCode(HttpStatusCode statusCode) Set the specific redirect 3xx status code to use.ViewControllerRegistration.setStatusCode(HttpStatusCode statusCode) Set the status code to set on the response. -
Uses of HttpStatusCode in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function that return HttpStatusCodeModifier and TypeMethodDescriptionServerResponse.statusCode()Return the status code of this response.Methods in org.springframework.web.servlet.function with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionEntityResponse.Builder.status(HttpStatusCode status) Set the HTTP status.RenderingResponse.Builder.status(HttpStatusCode status) Set the HTTP status.static ServerResponse.BodyBuilderServerResponse.status(HttpStatusCode status) Create a builder with the given HTTP status. -
Uses of HttpStatusCode in org.springframework.web.servlet.mvc
Methods in org.springframework.web.servlet.mvc that return HttpStatusCodeModifier and TypeMethodDescriptionParameterizableViewController.getStatusCode()Return the configured HTTP status code ornull.Methods in org.springframework.web.servlet.mvc with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionvoidParameterizableViewController.setStatusCode(HttpStatusCode statusCode) Configure the HTTP status code that this controller should set on the response. -
Uses of HttpStatusCode in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type HttpStatusCodeModifier and TypeMethodDescriptionprotected ProblemDetailResponseEntityExceptionHandler.createProblemDetail(Exception ex, HttpStatusCode status, String defaultDetail, String detailMessageCode, Object[] detailMessageArguments, WebRequest request) Convenience method to create aProblemDetailfor any exception that doesn't implementErrorResponse, also performing aMessageSourcelookup for the "detail" field.protected ResponseEntity<Object>ResponseEntityExceptionHandler.createResponseEntity(Object body, HttpHeaders headers, HttpStatusCode statusCode, WebRequest request) Create theResponseEntityto use from the given body, headers, and statusCode.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofAsyncRequestTimeoutException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleBindException(BindException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Deprecated, for removal: This API element is subject to removal in a future version.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleConversionNotSupported(ConversionNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofConversionNotSupportedException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleErrorResponseException(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling of anyErrorResponseException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleExceptionInternal(Exception ex, Object body, HttpHeaders headers, HttpStatusCode statusCode, WebRequest request) Internal handler method that all others in this class delegate to, for common handling, and for the creation of aResponseEntity.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHandlerMethodValidationException(HandlerMethodValidationException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHandlerMethodValidationException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMediaTypeNotAcceptableException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMediaTypeNotSupportedException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMessageNotReadableException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMessageNotWritableException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpRequestMethodNotSupportedException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMaxUploadSizeExceededException(MaxUploadSizeExceededException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling of anyMaxUploadSizeExceededException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofMethodArgumentNotValidException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingPathVariable(MissingPathVariableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofMissingPathVariableException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingServletRequestParameter(MissingServletRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofMissingServletRequestParameterException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingServletRequestPart(MissingServletRequestPartException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofMissingServletRequestPartException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleNoHandlerFoundException(NoHandlerFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofNoHandlerFoundException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleNoResourceFoundException(NoResourceFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofNoResourceFoundException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleServletRequestBindingException(ServletRequestBindingException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofServletRequestBindingException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleTypeMismatch(TypeMismatchException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofTypeMismatchException. -
Uses of HttpStatusCode in org.springframework.web.servlet.resource
Methods in org.springframework.web.servlet.resource that return HttpStatusCode -
Uses of HttpStatusCode in org.springframework.web.servlet.view
Methods in org.springframework.web.servlet.view that return HttpStatusCodeModifier and TypeMethodDescriptionprotected HttpStatusCodeRedirectView.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 HttpStatusCodeModifier and TypeMethodDescriptionvoidRedirectView.setStatusCode(HttpStatusCode statusCode) Set the status code for this view. -
Uses of HttpStatusCode in org.springframework.web.socket.sockjs.transport.handler
Methods in org.springframework.web.socket.sockjs.transport.handler that return HttpStatusCodeModifier and TypeMethodDescriptionprotected abstract HttpStatusCodeAbstractHttpReceivingTransportHandler.getResponseStatus()protected HttpStatusCodeXhrReceivingTransportHandler.getResponseStatus()
ModelAttributeMethodProcessornow raises theMethodArgumentNotValidExceptionsubclass instead.