This happens when trying to call those endpoints in the browser:
http://localhost:11222/rest/v2/caches/default?action=config