protected function setErrorDetails(string $reason, int $code)
    {
        $this->setError(ArrayContainer::make([
                'code'    => $code,
                'message' => $reason,
        ]));
    }