diff --git a/spring-web/src/main/java/org/springframework/web/ErrorResponse.java b/spring-web/src/main/java/org/springframework/web/ErrorResponse.java index a92416f4dcc..c484f48f933 100644 --- a/spring-web/src/main/java/org/springframework/web/ErrorResponse.java +++ b/spring-web/src/main/java/org/springframework/web/ErrorResponse.java @@ -27,7 +27,7 @@ import org.springframework.lang.Nullable; /** * Representation of a complete RFC 7807 error response including status, - * headers, and an RFC 7808 formatted {@link ProblemDetail} body. Allows any + * headers, and an RFC 7807 formatted {@link ProblemDetail} body. Allows any * exception to expose HTTP error response information. * *

{@link ErrorResponseException} is a default implementation of this diff --git a/spring-web/src/main/java/org/springframework/web/ErrorResponseException.java b/spring-web/src/main/java/org/springframework/web/ErrorResponseException.java index febea11a70c..96f35b4b7b8 100644 --- a/spring-web/src/main/java/org/springframework/web/ErrorResponseException.java +++ b/spring-web/src/main/java/org/springframework/web/ErrorResponseException.java @@ -26,7 +26,7 @@ import org.springframework.lang.Nullable; /** * {@link RuntimeException} that implements {@link ErrorResponse} to expose - * an HTTP status, response headers, and a body formatted as an RFC 7808 + * an HTTP status, response headers, and a body formatted as an RFC 7807 * {@link ProblemDetail}. * *

The exception can be used as is, or it can be extended as a more specific