Merge pull request #6396 from nextcloud/bugfix/noid/use-an-exception-which-is-translated-in-the-middleware Use an exception which is translated in the middleware