code: public static HttpResponseStatus parseLine(String line) {
          try {
              int space = line.indexOf(' ');
              return space == -1 ? valueOf(parseInt(line)) :
                      valueOf(parseInt(line.substring(0, space)), line.substring(space + 1));
          } catch (Exception e) {
              throw new IllegalArgumentException("malformed status line: " + line, e);
          }
      }
docs: Parses the specified HTTP status line into a {@link HttpResponseStatus}. The expected formats of the line are:
  <ul>
  <li>{@code statusCode} (e.g. 200)</li>
  <li>{@code statusCode} {@code reasonPhrase} (e.g. 404 Not Found)</li>
  </ul>
  
  @throws IllegalArgumentException if the specified status line is malformed