mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 17:49:02 +00:00
This commit introduces HttpStatusCode, an interface implemented by HttpStatus. Instances of HttpStatusCode are obtained via static valueOf(int) factory method, returning a HttpStatus enum entry if available, and a default implementation otherwise. The underlying reason behind this change is HTTP status codes are not enumerable, but instead range from 100-999. Closes gh-28214