isSameCodeAs method
Whether this {@code HttpStatusCode} shares the same integer {@link #value() value} as the other status code.
Useful for comparisons that take deprecated aliases into account or compare arbitrary implementations of {@code HttpStatusCode} (e.g. in place of {@link HttpStatus#equals(Object) HttpStatus enum equality}). @param other the other {@code HttpStatusCode} to compare @return true if the two {@code HttpStatusCode} objects share the same integer {@code value()}, false otherwise @since 6.0.5 default
Implementation
bool isSameCodeAs(HttpStatusCode other) {
return value == other.value;
}