I have disabled range like this in the config file
enabled_periods_API = "day,week,month,year"
Then I viewed the Goals overview page and got a generic error
Looking at the request there is this error:
<div class='alert alert-danger'><strong>Error:</strong> The period &<a href='/039'>#039</a>;range&<a href='/039'>#039</a>; is not supported. Try any of the following instead: day, week, month, year</div>
Not too important as we would usually expect that people then also disable it in the UI.
Or maybe eventually if disabled in the API, it would be also disabled in the UI automatically.