API requests supports the URL parameter variant. For instance, compare
https://sr.wikipedia.org/w/api.php?action=parse&format=jsonfm&formatversion=2&page=HTTP&variant=sr-ec and
https://sr.wikipedia.org/w/api.php?action=parse&format=jsonfm&formatversion=2&page=HTTP&variant=sr-el
But it generates the warning:
"warnings": "Unrecognized parameter: 'variant'"
So remove the warning and support the parameter officially.