Package ai.platon.pulsar.common.http
Object HttpStatus.Companion
-
- All Implemented Interfaces:
public class HttpStatus.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static HttpStatus.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final HttpStatusvalueOf(Integer statusCode)Return the HttpStatusenum constant with the specified numeric value.final HttpStatusresolve(Integer statusCode)Resolve the given status code to an HttpStatus, if possible.-
-
Method Detail
-
valueOf
final HttpStatus valueOf(Integer statusCode)
Return the
HttpStatusenum constant with the specified numeric value.- Parameters:
statusCode- the numeric value of the enum to be returned- Returns:
the enum constant with the specified numeric value
-
resolve
@Nullable() final HttpStatus resolve(Integer statusCode)
Resolve the given status code to an
HttpStatus, if possible.- Parameters:
statusCode- the HTTP status code (potentially non-standard)- Returns:
the corresponding
HttpStatus, ornullif not found- Since:
5.0
-
-
-
-