public static StatusCode fromAsciiLine(String line) {
    if (line.equals("STORED") || line.equals("DELETED")) {
      return SUCCESS;
    } else if (line.equals("NOT_STORED")) {
      return ERR_NOT_STORED;
    } else if (line.equals("EXISTS")) {
      return ERR_EXISTS;
    } else if (line.equals("NOT_FOUND")) {
      return ERR_NOT_FOUND;
    } else if (line.equals("ERROR")
      || line.matches("^(CLIENT|SERVER)_ERROR.*")) {
      return ERR_INTERNAL;
    } else {
      return ERR_CLIENT;
    }
  }
Represents status and error codes from the binary protocol.
src/main/java/net/spy/memcached/ops/StatusCode.java