Per https://wikitech.wikimedia.org/wiki/HTTP_timeouts, varnish/ATS has a 180 second timeout, but MediaWiki has $wgRequestTimeLimit set to 200 seconds on POST requests, leading to the situation where some POST requests will result in the user seeing an error screen from Varnish, rather than the one generated by MediaWiki.
Either the Varnish/ATS timeout should be raised to match MW or the MW should be lowered to be slightly under Varnish/ATS, per the parent task.