MediaWiki

Apihelp-opensearch-param-warningsaserror

From Gender and Tech Resources

If warnings are raised with format=json, return an API error instead of ignoring them.