Ironically, the wiki page you linked shows how to use JavaScript to show meaningful error messages to users.
And in any case, graceful degradation is a good thing to shoot for, but far from a requirement. Mastodon is Free Software. If someone wants to fork it and make a version that replaces frontend JS with server side rendering, that's legal and fine.