src/includes/classes/Core/Utils/Fatalities.php
public function dieEcho()
    {
        $url     = $this->c::currentUrl();
        $method  = $this->c::currentMethod();
        $headers = $_h = $this->c::currentHeaders();

        $query = $this->c::unslash($_GET);
        $vars  = $_r  = $this->c::unslash($_REQUEST);

        $raw = (string) file_get_contents('php://input');

        if (mb_stripos($_h['content-type'] ?? '', '/json')) {
            $json = json_decode($raw) ?: (object) [];
        }
        $code    = (int) ($_r['status'] ?? 200);
        $slug    = $this->c::statusHeaderSlug($code);
        $message = $this->c::statusHeaderMessage($code);

        $response = json_encode($this->c::removeNulls([
            'success' => $code < 400,

            'error'   => $code >= 400 ? [
                'code'    => $code,
                'slug'    => $slug,
                'message' => $message,
            ] : null,

            'echo'    => [
                'time' => time(),

                'method' => $method,
                'url'    => $url,
                'query'  => $query,

                'headers' => $headers,
                'data'    => [
                    'vars' => $vars,
                    'json' => $json ?? null,
                    'raw'  => $raw,
                ],
                'status' => [
                    'code'    => $code,
                    'slug'    => $slug,
                    'message' => $message,
                ],
            ],
        ]), JSON_PRETTY_PRINT);

        $this->c::obEndCleanAll();
        $this->c::noCacheFlags();
        $this->c::noCacheHeaders();
        $this->c::statusHeader($code);

        if ($this->c::isAjax() || $this->c::isApi()) {
            header('content-type: application/json; charset=utf-8');
            exit($response);
        } else {
            header('content-type: text/plain; charset=utf-8');
            exit($response);
        }
    }
public function dieEcho()
    {
        $url     = $this->c::currentUrl();
        $method  = $this->c::currentMethod();
        $headers = $_h = $this->c::currentHeaders();

        $query = $this->c::unslash($_GET);
        $vars  = $_r  = $this->c::unslash($_REQUEST);

        $raw = (string) file_get_contents('php://input');

        if (mb_stripos($_h['content-type'] ?? '', '/json')) {
            $json = json_decode($raw) ?: (object) [];
        }
        $code    = (int) ($_r['status'] ?? 200);
        $slug    = $this->c::statusHeaderSlug($code);
        $message = $this->c::statusHeaderMessage($code);

        $response = json_encode($this->c::removeNulls([
            'success' => $code < 400,

            'error'   => $code >= 400 ? [
                'code'    => $code,
                'slug'    => $slug,
                'message' => $message,
            ] : null,

            'echo'    => [
                'time' => time(),

                'method' => $method,
                'url'    => $url,
                'query'  => $query,

                'headers' => $headers,
                'data'    => [
                    'vars' => $vars,
                    'json' => $json ?? null,
                    'raw'  => $raw,
                ],
                'status' => [
                    'code'    => $code,
                    'slug'    => $slug,
                    'message' => $message,
                ],
            ],
        ]), JSON_PRETTY_PRINT);

        $this->c::obEndCleanAll();
        $this->c::noCacheFlags();
        $this->c::noCacheHeaders();
        $this->c::statusHeader($code);

        if ($this->c::isAjax() || $this->c::isApi()) {
            header('content-type: application/json; charset=utf-8');
            exit($response);
        } else {
            header('content-type: text/plain; charset=utf-8');
            exit($response);
        }
    }
Die (as an echo).

@since 170824.30708 Fatalities.