code: public static function errorType($value = '')
      {
          $value = self::flattenSingleValue($value);
  
          $i = 1;
          foreach (self::$errorCodes as $errorCode) {
              if ($value === $errorCode) {
                  return $i;
              }
              ++$i;
          }
  
          return self::NA();
      }
docs: ERROR_TYPE.
  
  @param mixed $value Value to check
  
  @return bool