resolve static method
Resolve the given status code to an {status-code: HttpStatus.Series}, if possible. @param statusCode the HTTP status code (potentially non-standard) @return the corresponding {status-code: Series}, or {status-code: null} if not found @since 0.0.1.beta
Implementation
static Series? resolve(int statusCode) {
int seriesCode = statusCode ~/ 100;
for (Series series in Series.values) {
if (series.value == seriesCode) {
return series;
}
}
return null;
}