set content-type on ocs exceptions
fixing method names
Merge pull request #7690 from owncloud/backport-7683-stable6

Backport 7683 stable6