The response code I am getting is a 405 from NGINX. This happens to me when running bin / console sw: theme: cache: generate it to clear the HTTP cache. It seems this is due to Shopware trying to send a BAN request and the server rejecting this. It is important to note that I am getting this error when using Varnish or any reverse proxy. Shopware is trying to send the BAN request as it can not find the httpcache service in the service container. Looking at services.xml files I can not see any entry for this.
Has anyone had a similar issue to this when using Shopware with no reverse proxy?