protected function createStatusFromException()
    {
        $e      = $this->detail;
        $status = $e->getCode();

        if (empty($status)
            || ($status < 100)
            || ($status > 599)
        ) {
            return 500;
        }

        return $status;
    }