protected function createResponseBody(\Throwable $exception): string
    {
        if (file_exists($this->projectPath . '/docroot/500.html')) {
            return file_get_contents($this->projectPath . '/docroot/500.html');
        }

        return "I'm sorry but I can not fulfill your request. Somewhere someone messed something up.";
    }
protected function createResponseBody(\Throwable $exception): string
    {
        if (file_exists($this->projectPath . '/docroot/500.html')) {
            return file_get_contents($this->projectPath . '/docroot/500.html');
        }

        return "I'm sorry but I can not fulfill your request. Somewhere someone messed something up.";
    }
protected function createResponseBody ( \ Throwable $ exception ) : string { if ( file_exists ( $ this -> projectPath . '/docroot/500.html' ) ) { return file_get_contents ( $ this -> projectPath . '/docroot/500.html' ) ; } return "I'm sorry but I can not fulfill your request. Somewhere someone messed something up." ; }
creates response body with useful data for display

@param   \Throwable  $exception  the uncatched exception
@return  string
creates response body with useful data for display