public function setAcceptHeader(string $header)
    {
        if (Validation::isValidAcceptType($header)) {
            $this->acceptHeader = $header;
        } else {
            throw new CustomException('Invalid accept type');
        }
    }