<?php

class DevHealthController extends Controller
{
    /**
     * @var array
     */
    public static $allowed_actions = array(
        'index'
    );

    /**
     * @return EnvironmentChecker
     *
     * @throws SS_HTTPResponse_Exception
     */
    public function index()
    {
        // health check does not require permission to run

        $checker = new EnvironmentChecker('health', 'Site health');
        $checker->init('');
        $checker->setErrorCode(404);

        return $checker;
    }
}

<?php

class DevHealthController extends Controller
{
    /**
     * @var array
     */
    public static $allowed_actions = array(
        'index'
    );

    /**
     * @return EnvironmentChecker
     *
     * @throws SS_HTTPResponse_Exception
     */
    public function index()
    {
        // health check does not require permission to run

        $checker = new EnvironmentChecker('health', 'Site health');
        $checker->setErrorCode(500);

        return $checker;
    }
}

Allow public access to the dev/health url and change response to 500
Allow public access to the dev/health url and change response to 500
