   if(valQuery.startsWith("type=")){
     valQuery.replace("type=", "");
   }else{
-    return NgReturnJson("type is not specified.", valQuery);
+    return NgReturnJson(TYPE_IS_NOT_SPECIFIED, valQuery);
   }
 
   for(int i = 0; i < ARRAYSIZE(PIN_MODE_TBL); i++){

        break;
      }
      if(++buf_index >= ARRAYSIZE(read_buf)){
        Serial.println(NgReturnJson("Command is too long.", "Less than 127 characters, including newlines" ));
        // なくなるまで読み捨てる.
        while(Serial.available() > 0){Serial.read();}
        memset(read_buf, 0, ARRAYSIZE(read_buf));

  if(error){
    return error;
  }
  uint8_t port = strToInt(portQuery);
  return aiRead(port);
}

