Return 401 headers when authentication is required for the api call
Fix incorrect indentation
Correct spelling of 'Authorization'
Merge pull request #1205 from owncloud/ocs_api

Return 401 headers when trying to access a restricted api call