For testing variant conversion when using a title like MediaWiki:Privacy/crh-latn and sending the encoded value to the API (MediaWiki%3APrivacy%2Fcrh-latn) for testing returns in a 404 error page from Apache.
This was happening for me locally also and adding the following under the <VirtualHost> declaration fixed the issue: AllowEncodedSlashes NoDecode