public static HttpStatus valueOf(String statusText) {
        requireNonNull(statusText, "statusText");
        final int spaceIdx = statusText.indexOf(' ');
        final int statusCode;
        try {
            if (spaceIdx < 0) {
                statusCode = Integer.parseInt(statusText);
            } else if (spaceIdx > 0) {
                statusCode = Integer.parseInt(statusText.substring(0, spaceIdx));
            } else {
                return UNKNOWN;
            }
        } catch (NumberFormatException e) {
            return UNKNOWN;
        }

        return valueOf(statusCode);
    }
Returns the {@link HttpStatus} represented by the specified status text.

@return the parsed {@link HttpStatus}, or {@link #UNKNOWN} if failed to parse.

@see #isContentAlwaysEmpty()
core/src/main/java/com/linecorp/armeria/common/HttpStatus.java