owncloud/core — pull request #1205 by tomneedham (2013-01-16 20:31:20+00:00)
Title: Return 401 headers when trying to access a restricted api call

Return a 401 header to the browser / client when they try to access a restricted without the correct auth headers. Makes it easier to test the api in a browser, and properly informs the client of the result of the call.