src/Http/Responses/ErrorResponseBuilder.php
public function error($errorCode = null, string $message = null)
    {
        $this->errorCode = $errorCode;
        $this->message = $message;

        return $this;
    }
public function error($errorCode = null, string $message = null)
    {
        $this->errorCode = $errorCode;
        $this->message = $message;

        return $this;
    }
Set the error code and message.

@param  mixed|null  $errorCode
@param  string|null $message
@return $this