src/Web/Result.php
public function addError($code, $codeTag = '', $message = '')
    {
        return $this->addMessage($code, $codeTag, $message, $this->errors, self::Status_Errors);
    }
public function addError($code, $codeTag = '', $message = '')
    {
        return $this->addMessage($code, $codeTag, $message, $this->errors, self::Status_Errors);
    }
public function addError ( $ code , $ codeTag = '' , $ message = '' ) { return $ this -> addMessage ( $ code , $ codeTag , $ message , $ this -> errors , self :: Status_Errors ) ; }
Adds an error to the list of errors.

@param int|array $code
Error code number. Usually of type 4xx, 5xx, 6xx or 7xx (internal).
It may also be an already completed error array.
@param string $codeTag
Special code tag. Use this as a reference when communicating with
Acumulus technical support.
@param string $message
A message describing the error.

@return $this
Adds an error to the list of errors .