In a change that appears to have gone live yesterday or today, some raw actions are now returning an HTML 404 page. The previous behavior, I believe, was that it would return an empty document when a nonexistent page was requested. For example: https://meta.wikimedia.org/w/index.php?action=raw&title=User:Sage%20(Wiki%20Ed)/dashboard%20modules/nonexistent.json
This changes the behavior of the mediawiki_api Ruby gem when requesting the wikitext of a nonexistent title, and may affect other programmatic users of action=raw as well.