diff --git a/spring-web/src/main/java/org/springframework/http/HttpStatusCode.java b/spring-web/src/main/java/org/springframework/http/HttpStatusCode.java index d92c89964e..ce048d12a6 100644 --- a/spring-web/src/main/java/org/springframework/http/HttpStatusCode.java +++ b/spring-web/src/main/java/org/springframework/http/HttpStatusCode.java @@ -16,6 +16,8 @@ package org.springframework.http; +import java.io.Serializable; + import org.springframework.util.Assert; /** @@ -27,7 +29,7 @@ import org.springframework.util.Assert; * @see HTTP Status Code Registry * @see List of HTTP status codes - Wikipedia */ -public sealed interface HttpStatusCode permits DefaultHttpStatusCode, HttpStatus { +public sealed interface HttpStatusCode extends Serializable permits DefaultHttpStatusCode, HttpStatus { /** * Return the integer value of this status code.