https://www.w3.org/wiki/Graceful_degradation_versus_progress...
... and this is neither.
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.
But sarcasm aside, JS is a web standard, just like HTML and CSS. While I understand the opinion of people who don't want to execute JS in their browser, I'm also highly sympathetic to devs who want to use things that are enabled by default in all modern browsers.