diff --git a/spring-web/src/main/java/org/springframework/web/bind/annotation/ExceptionHandler.java b/spring-web/src/main/java/org/springframework/web/bind/annotation/ExceptionHandler.java index ed19bdf6041..ece0b98f609 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/annotation/ExceptionHandler.java +++ b/spring-web/src/main/java/org/springframework/web/bind/annotation/ExceptionHandler.java @@ -88,6 +88,8 @@ import org.springframework.core.annotation.AliasFor; * (Servlet-only) to set response headers and content. The ResponseEntity body * will be converted and written to the response stream using * {@linkplain org.springframework.http.converter.HttpMessageConverter message converters}. + *
  • A {@link org.springframework.http.ProblemDetail} or {@link org.springframework.web.ErrorResponse} + * object to render an RFC 9457 error response with details in the body. *
  • {@code void} if the method handles the response itself (by * writing the response content directly, declaring an argument of type * {@link jakarta.servlet.ServletResponse} / {@link jakarta.servlet.http.HttpServletResponse}