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

set content-type on ocs exceptions