Until recently we considered any unsuccessful edit an unexpected error (which caused T329233). After this incident we now handle prevented (via abuse filter, spam filter, rate limit) edits (patch) differently, but a look at MediaWikiEditEntity.php, which we use internally, reveals other kinds of unexceptional errors, e.g. edit conflicts.
We need to find out what other kinds of errors we should expect, and come up with a better permanent solution for them.
Time box: 8 hrs