owncloud/core — pull request #12072 by PVince81 (2014-11-10 11:01:51+00:00)
Title: Convert StorageNotAvailableException to SabreDAV exception

Convert \OCP\Files\StorageNotAvailableException to
\Sabre\DAV\Exception\ServiceUnavailable for every file/directory
operation happening inside of SabreDAV.

This is necessary to avoid having the exception bubble up to remote.php
which would return an exception page instead of an appropriate response.

Second try from https://github.com/owncloud/core/pull/11992