For some edits, API action=edit with errorformat=html returns a redundant 'hookaborted' error even when an error message is set.
For example, trying to edit an UploadWizard 'Campaign' page with invalid JSON:
{ "errors": [ { "code": "eventlogging-invalid-json", "module": "edit", "*": "Invalid JSON" }, { "code": "hookaborted", "module": "edit", "*": "The modification you tried to make was aborted by an extension." } ], "servedby": "deployment-mediawiki-09", "*": "See https://commons.wikimedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes." }
I also noticed this in my work on AbuseFilter and SpamBlacklist in T229539.