public function setStatusCode($status)
    {
        if (!in_array($status, array('building', 'success', 'failed'))) {
            throw new \InvalidArgumentException(sprintf('Invalid status code "%s".', $status));
        }

        $this->status = $status;
    }